From: Howard Chu Date: Fri, 9 Feb 2007 17:39:49 +0000 (+0000) Subject: Fix prev commit, cleanup fakeroot entry before freeing X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=10a0900e2ee0a527fdccab24922d276e904c8ad6;p=openldap Fix prev commit, cleanup fakeroot entry before freeing --- diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index 5d594bd115..e4566c67be 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -564,7 +564,15 @@ bdb_db_destroy( BackendDB *be ) ldap_pvt_thread_rdwr_destroy( &bdb->bi_idl_tree_rwlock ); ldap_pvt_thread_mutex_destroy( &bdb->bi_idl_tree_lrulock ); - entry_free( bdb->bi_cache.c_dntree.bei_e ); + { + Entry *e; + e = bdb->bi_cache.c_dntree.bei_e; + bdb->bi_cache.c_dntree.bei_e = NULL; + e->e_private = NULL; + BER_BVZERO( &e->e_name ); + BER_BVZERO( &e->e_nname ); + entry_free( e ); + } ch_free( bdb ); be->be_private = NULL;