mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ldb:ldb_dn.c - ldb_dn_explode - free also the extended components on error cases
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Wed Nov 17 08:45:53 UTC 2010 on sn-devel-104
This commit is contained in:
parent
3f43b7e542
commit
3e055cc830
@ -729,8 +729,11 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
failed:
|
failed:
|
||||||
|
LDB_FREE(dn->components);
|
||||||
dn->comp_num = 0;
|
dn->comp_num = 0;
|
||||||
talloc_free(dn->components);
|
LDB_FREE(dn->ext_components);
|
||||||
|
dn->ext_comp_num = 0;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user