Skip to content
Snippets Groups Projects
Commit 10a0900e authored by Howard Chu's avatar Howard Chu
Browse files

Fix prev commit, cleanup fakeroot entry before freeing

parent 94e7e3ba
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment