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

Plug memleak from ITS#2895

parent 56103a57
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment