Fix - don't free constant database names

This commit is contained in:
Howard Chu 2001-12-20 08:47:32 +00:00
parent ae6b840350
commit 56bc0b64df

View file

@ -324,7 +324,8 @@ bdb_db_close( BackendDB *be )
while( bdb->bi_ndatabases-- ) {
db = bdb->bi_databases[bdb->bi_ndatabases];
rc = db->bdi_db->close( db->bdi_db, 0 );
if( db->bdi_name )
/* Lower numbered names are not strdup'd */
if( bdb->bi_ndatabases >= BDB_NDB )
free( db->bdi_name );
free( db );
}