mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-31 02:49:28 -05:00
don't leak matchedDN
This commit is contained in:
parent
3cb2bc0c56
commit
7146f4e21f
1 changed files with 1 additions and 0 deletions
|
|
@ -431,6 +431,7 @@ fail:;
|
|||
|
||||
if ( dnPretty( NULL, &match, &pmatch, op->o_tmpmemctx ) == LDAP_SUCCESS ) {
|
||||
rs->sr_matched = pmatch.bv_val;
|
||||
LDAP_FREE( match.bv_val );
|
||||
|
||||
} else {
|
||||
rs->sr_matched = match.bv_val;
|
||||
|
|
|
|||
Loading…
Reference in a new issue