From cd5e10250a879d10c1d57fd0fe25ec43124ee180 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 13 Jun 2008 23:06:50 +0000 Subject: [PATCH] ITS#5557 plug leak from skipping over rset value --- servers/slapd/sets.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index d7c56fa9ed..d8de70044d 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -200,6 +200,7 @@ slap_set_join( cp->set_op->o_tmpfree( rset[ i ].bv_val, cp->set_op->o_tmpmemctx ); rset[ i ] = rset[ --rlast ]; BER_BVZERO( &rset[ rlast ] ); + i--; } exists = 1; break; -- 2.39.5