mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
Plug memleak from ITS#2895
This commit is contained in:
parent
56103a575b
commit
c3984d9f59
1 changed files with 4 additions and 0 deletions
|
|
@ -202,6 +202,10 @@ int bdb_entry_release(
|
|||
SLAP_TRUNCATE_MODE, SLAP_UNDEFINED_MODE */
|
||||
|
||||
if ( slapMode == SLAP_SERVER_MODE ) {
|
||||
/* If not in our cache, just free it */
|
||||
if ( !e->e_private ) {
|
||||
return bdb_entry_return( e );
|
||||
}
|
||||
/* free entry and reader or writer lock */
|
||||
if ( o ) {
|
||||
boi = (struct bdb_op_info *)o->o_private;
|
||||
|
|
|
|||
Loading…
Reference in a new issue