mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 22:50:51 -05:00
Fix prev cache.c commit
This commit is contained in:
parent
4673c99e96
commit
9b516293b9
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue