]> git.sur5r.net Git - openldap/commitdiff
Fix another leaked environment.
authorHoward Chu <hyc@openldap.org>
Fri, 26 Aug 2005 02:35:32 +0000 (02:35 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 26 Aug 2005 02:35:32 +0000 (02:35 +0000)
servers/slapd/back-bdb/init.c

index 33ef87d559249344e0cba3acc4ac78b0dc24d6eb..e7417c7faad45fb56f277480f935f07783616e4c 100644 (file)
@@ -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,