Skip to content
Snippets Groups Projects
Commit 56bc0b64 authored by Howard Chu's avatar Howard Chu
Browse files

Fix - don't free constant database names

parent ae6b8403
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment