From 7cb1176502538530e971dad302dc3383b0f2373e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 20 Jul 2000 23:56:12 +0000 Subject: [PATCH] Plug memory leak of normalized value in value_find() --- servers/slapd/value.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5