mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
fix e_private value, goes along with memory leak fix to accesslog.c
This commit is contained in:
parent
b898d35647
commit
88ce76f24e
@ -707,6 +707,7 @@ again: ldap_pvt_thread_rdwr_rlock( &bdb->bi_cache.c_rwlock );
|
|||||||
&ep->e_nname, eip );
|
&ep->e_nname, eip );
|
||||||
if ( *eip ) islocked = 1;
|
if ( *eip ) islocked = 1;
|
||||||
if ( rc ) {
|
if ( rc ) {
|
||||||
|
ep->e_private = NULL;
|
||||||
#ifdef SLAP_ZONE_ALLOC
|
#ifdef SLAP_ZONE_ALLOC
|
||||||
bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
|
bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
|
||||||
#else
|
#else
|
||||||
@ -811,6 +812,7 @@ load1:
|
|||||||
bdb_cache_entryinfo_unlock( *eip );
|
bdb_cache_entryinfo_unlock( *eip );
|
||||||
}
|
}
|
||||||
if ( ep ) {
|
if ( ep ) {
|
||||||
|
ep->e_private = NULL;
|
||||||
#ifdef SLAP_ZONE_ALLOC
|
#ifdef SLAP_ZONE_ALLOC
|
||||||
bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
|
bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user