From bc09291b8132d3149c0358885fbbe91365fe26a2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 7 Dec 2004 02:58:33 +0000 Subject: [PATCH] restore code in search_cleanup to free ctrls --- servers/slapd/overlays/syncprov.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5