Commit 90ab85a7 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#6376

parent d9e9a8d4
......@@ -28,6 +28,7 @@ OpenLDAP 2.4.20 Engineering
Fixed slapo-pcache entry dupe (ITS#6310)
Fixed slapo-syncprov checkpoint conversion (ITS#6370)
Fixed slapo-syncprov deadlock (ITS#6335)
Fixed slapo-syncprov memory leak (ITS#6376)
Fixed slapo-syncprov out of order changes (ITS#6346)
Build Environment
Fixed memrchr define (ITS#6351)
......
......@@ -855,7 +855,14 @@ syncprov_sendresp( Operation *op, opcookie *opc, syncops *so,
}
/* In case someone else freed it already? */
if ( rs.sr_ctrls ) {
op->o_tmpfree( rs.sr_ctrls[0], op->o_tmpmemctx );
int i;
for ( i=0; rs.sr_ctrls[i]; i++ ) {
if ( rs.sr_ctrls[i] == ctrls[0] ) {
op->o_tmpfree( ctrls[0]->ldctl_value.bv_val, op->o_tmpmemctx );
ctrls[0]->ldctl_value.bv_val = NULL;
break;
}
}
rs.sr_ctrls = NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment