From: Kurt Zeilenga Date: Thu, 20 Jul 2000 23:56:12 +0000 (+0000) Subject: Plug memory leak of normalized value in value_find() X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2401 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7cb1176502538530e971dad302dc3383b0f2373e;p=openldap Plug memory leak of normalized value in value_find() --- diff --git a/servers/slapd/value.c b/servers/slapd/value.c index 2440a6a6e1..e4b9ee0ed6 100644 --- a/servers/slapd/value.c +++ b/servers/slapd/value.c @@ -188,9 +188,11 @@ int value_find( vals[i], nval == NULL ? val : nval, &text ); if( rc == LDAP_SUCCESS && match == 0 ) { + ber_bvfree( nval ); return LDAP_SUCCESS; } } + ber_bvfree( nval ); return LDAP_NO_SUCH_ATTRIBUTE; }