From: Howard Chu Date: Fri, 26 Aug 2005 02:35:32 +0000 (+0000) Subject: Fix another leaked environment. X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~568 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e92728db9573fbe31889d172952400397eb67fe;p=openldap Fix another leaked environment. --- 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,