From 8c674299bf2a432b76ee8dd657060ebe96575da6 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 27 Feb 2006 03:44:40 +0000 Subject: [PATCH] Fix memory smasher in slapi_valueset_free() --- servers/slapd/slapi/slapi_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index dbc39c376f..6b03416dc2 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -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 ); } } -- 2.39.5