1
0
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:
Matthias Dieter Wallnöfer 2010-11-17 08:58:21 +01:00
parent 3f43b7e542
commit 3e055cc830

View File

@ -729,8 +729,11 @@ static bool ldb_dn_explode(struct ldb_dn *dn)
return true;
failed:
LDB_FREE(dn->components);
dn->comp_num = 0;
talloc_free(dn->components);
LDB_FREE(dn->ext_components);
dn->ext_comp_num = 0;
return false;
}