Fix prev cache.c commit

This commit is contained in:
Howard Chu 2008-04-29 21:44:47 +00:00
parent 4673c99e96
commit 9b516293b9
2 changed files with 2 additions and 1 deletions

View file

@ -1292,7 +1292,7 @@ bdb_cache_delete_cleanup(
Cache *cache,
EntryInfo *ei )
{
bdb_cache_entryinfo_lock( ei );
/* Enter with ei locked */
if ( ei->bei_e ) {
ei->bei_e->e_private = NULL;

View file

@ -572,6 +572,7 @@ return_results:
if( e != NULL ) {
if ( rs->sr_err == LDAP_SUCCESS ) {
/* Free the EntryInfo and the Entry */
bdb_cache_entryinfo_lock( BEI(e) );
bdb_cache_delete_cleanup( &bdb->bi_cache, BEI(e) );
} else {
bdb_unlocked_cache_return_entry_w(&bdb->bi_cache, e);