From 7e92728db9573fbe31889d172952400397eb67fe Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 26 Aug 2005 02:35:32 +0000 Subject: [PATCH] Fix another leaked environment. --- servers/slapd/back-bdb/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 33ef87d559..e7417c7faa 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -312,6 +312,8 @@ bdb_db_open( BackendDB *be ) open_env = 0; } else { /* Create a new env that can take the desired settings */ + bdb->bi_dbenv->close( bdb->bi_dbenv, 0 ); + bdb->bi_dbenv = NULL; rc = db_env_create( &bdb->bi_dbenv, 0 ); if( rc != 0 ) { Debug( LDAP_DEBUG_ANY,