mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 10:39:34 -05:00
Plug memory leak of normalized value in value_find()
This commit is contained in:
parent
2890bc5b6d
commit
7cb1176502
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue