mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 14:42:10 -05:00
Plug memleak in enum_tree
This commit is contained in:
parent
769c6232a2
commit
a70c294359
1 changed files with 4 additions and 1 deletions
|
|
@ -466,11 +466,14 @@ enum_tree(
|
|||
struct ldif_info *ni = (struct ldif_info *) ck->op->o_bd->be_private;
|
||||
struct berval path;
|
||||
struct berval pdn, pndn;
|
||||
int rc;
|
||||
|
||||
dnParent( &ck->op->o_req_dn, &pdn );
|
||||
dnParent( &ck->op->o_req_ndn, &pndn );
|
||||
dn2path( &ck->op->o_req_ndn, &ck->op->o_bd->be_nsuffix[0], &ni->li_base_path, &path);
|
||||
return r_enum_tree(ck, &path, &pdn, &pndn);
|
||||
rc = r_enum_tree(ck, &path, &pdn, &pndn);
|
||||
ch_free( path.bv_val );
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Get the parent path plus the LDIF suffix */
|
||||
|
|
|
|||
Loading…
Reference in a new issue