]> git.sur5r.net Git - openldap/commitdiff
further fix of double free (ITS#4860)
authorPierangelo Masarati <ando@openldap.org>
Wed, 24 Oct 2007 10:34:43 +0000 (10:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 24 Oct 2007 10:34:43 +0000 (10:34 +0000)
servers/slapd/sets.c

index eab6401f664320fa6715e720fa87920fbe6d0c59..1d9c38d477b85c6c6e47c8d9a422fda2e67ac917 100644 (file)
@@ -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;
                }