From 10a0900e2ee0a527fdccab24922d276e904c8ad6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 9 Feb 2007 17:39:49 +0000 Subject: [PATCH] Fix prev commit, cleanup fakeroot entry before freeing --- servers/slapd/back-bdb/init.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.39.5