mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Plug 'matched' memory leak in dn2entry()
This commit is contained in:
parent
bf5ecff613
commit
97f10a99cc
1 changed files with 3 additions and 0 deletions
|
|
@ -189,6 +189,9 @@ dn2entry(
|
|||
if ( (pdn = dn_parent( be, dn )) != NULL ) {
|
||||
/* get entry with reader lock */
|
||||
if ( (e = dn2entry_r( be, pdn, matched )) != NULL ) {
|
||||
if(*matched != NULL) {
|
||||
free(*matched);
|
||||
}
|
||||
*matched = pdn;
|
||||
/* free entry with reader lock */
|
||||
cache_return_entry_r( &li->li_cache, e );
|
||||
|
|
|
|||
Loading…
Reference in a new issue