From a6a584eaa80b98425a0c46cb92ced283cd507d4c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 24 Oct 2007 10:34:43 +0000 Subject: [PATCH] further fix of double free (ITS#4860) --- servers/slapd/sets.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5