mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Fix - don't free constant database names
This commit is contained in:
parent
ae6b840350
commit
56bc0b64df
1 changed files with 2 additions and 1 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue