Plug memory leak of normalized value in value_find()

This commit is contained in:
Kurt Zeilenga 2000-07-20 23:56:12 +00:00
parent 2890bc5b6d
commit 7cb1176502

View file

@ -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;
}