From 970a60002fb7fe38508e5316910d7b6ad2d17601 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 22 Nov 2008 18:38:37 +0000 Subject: [PATCH] don't leak generated filters (ITS#5826) --- servers/slapd/syncrepl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 2bdb2d683b..6485acf761 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2451,6 +2451,9 @@ syncrepl_del_nonpresent( op->ors_filter = of; } if ( op->ors_filter ) filter_free_x( op, op->ors_filter, 1 ); + if ( op->ors_filterstr.bv_val != si->si_filterstr.bv_val ) { + op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx ); + } } -- 2.39.5