From: Pierangelo Masarati Date: Sat, 22 Nov 2008 18:38:37 +0000 (+0000) Subject: don't leak generated filters (ITS#5826) X-Git-Tag: ACLCHECK_0~1059 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=970a60002fb7fe38508e5316910d7b6ad2d17601;p=openldap don't leak generated filters (ITS#5826) --- 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 ); + } }