From: Luke Howard Date: Mon, 27 Feb 2006 03:44:40 +0000 (+0000) Subject: Fix memory smasher in slapi_valueset_free() X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~168 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c674299bf2a432b76ee8dd657060ebe96575da6;p=openldap Fix memory smasher in slapi_valueset_free() --- 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 ); } }