From: Howard Chu Date: Tue, 7 Dec 2004 02:58:33 +0000 (+0000) Subject: restore code in search_cleanup to free ctrls X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~109 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc09291b8132d3149c0358885fbbe91365fe26a2;p=openldap restore code in search_cleanup to free ctrls --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 97d422198f..83bae92a07 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -1256,13 +1256,11 @@ typedef struct searchstate { static int syncprov_search_cleanup( Operation *op, SlapReply *rs ) { -#if 0 if ( rs->sr_ctrls ) { - free( rs->sr_ctrls[0] ); + op->o_tmpfree( rs->sr_ctrls[0], op->o_tmpmemctx ); op->o_tmpfree( rs->sr_ctrls, op->o_tmpmemctx ); rs->sr_ctrls = NULL; } -#endif return 0; }