From 56bc0b64dfc579c603dd46fd2425558358e03cdb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 20 Dec 2001 08:47:32 +0000 Subject: [PATCH] Fix - don't free constant database names --- servers/slapd/back-bdb/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5