Fix another leaked environment.

This commit is contained in:
Howard Chu 2005-08-26 02:35:32 +00:00
parent 45d60c21dd
commit 7e92728db9

View File

@ -312,6 +312,8 @@ bdb_db_open( BackendDB *be )
open_env = 0; open_env = 0;
} else { } else {
/* Create a new env that can take the desired settings */ /* 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 ); rc = db_env_create( &bdb->bi_dbenv, 0 );
if( rc != 0 ) { if( rc != 0 ) {
Debug( LDAP_DEBUG_ANY, Debug( LDAP_DEBUG_ANY,