From: Pierangelo Masarati Date: Wed, 24 Oct 2007 10:34:43 +0000 (+0000) Subject: further fix of double free (ITS#4860) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~482 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a6a584eaa80b98425a0c46cb92ced283cd507d4c;p=openldap further fix of double free (ITS#4860) --- diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index eab6401f66..1d9c38d477 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -289,11 +289,13 @@ slap_set_join( } else { set = set_dup( cp, lset, SLAP_SET_LREF2REF( op_flags ) ); + lset = NULL; break; } } else if ( j == 0 ) { set = set_dup( cp, rset, SLAP_SET_RREF2REF( op_flags ) ); + rset = NULL; break; }