From: Howard Chu Date: Thu, 20 Dec 2001 08:47:32 +0000 (+0000) Subject: Fix - don't free constant database names X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~591 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56bc0b64dfc579c603dd46fd2425558358e03cdb;p=openldap Fix - don't free constant database names --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 53e4373c1d..0574375c08 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -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 ); }