mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix another leaked environment.
This commit is contained in:
parent
45d60c21dd
commit
7e92728db9
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user