]> git.sur5r.net Git - openldap/commitdiff
Fix memory smasher in slapi_valueset_free()
authorLuke Howard <lukeh@openldap.org>
Mon, 27 Feb 2006 03:44:40 +0000 (03:44 +0000)
committerLuke Howard <lukeh@openldap.org>
Mon, 27 Feb 2006 03:44:40 +0000 (03:44 +0000)
servers/slapd/slapi/slapi_utils.c

index dbc39c376f89c2694430158215d402e9c47e941b..6b03416dc2fdab9387556646d59161c81403e7e5 100644 (file)
@@ -2460,9 +2460,9 @@ void slapi_valueset_free(Slapi_ValueSet *vs)
                BerVarray vp = *vs;
 
                ber_bvarray_free( vp );
-               slapi_ch_free( (void **)&vp );
+               vp = NULL;
 
-               *vs = NULL;
+               slapi_ch_free( (void **)&vp );
        }
 }