Skip to content
Snippets Groups Projects
Commit 7cb11765 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Plug memory leak of normalized value in value_find()

parent 2890bc5b
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment