diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-17 08:58:21 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-17 08:45:53 +0000 |
commit | 3e055cc830eedaddf73456a31c5eeed2b3e9a00f (patch) | |
tree | 9aa9311b1fa266b5d67eba1b6ad94e10124fe8c3 /source4/lib/ldb/common | |
parent | 3f43b7e54205298766d38f250afe0c9285ed427d (diff) | |
download | samba-3e055cc830eedaddf73456a31c5eeed2b3e9a00f.tar.gz samba-3e055cc830eedaddf73456a31c5eeed2b3e9a00f.tar.bz2 samba-3e055cc830eedaddf73456a31c5eeed2b3e9a00f.zip |
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
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r-- | source4/lib/ldb/common/ldb_dn.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 69018b7bfc..a17d5166b1 100644 --- a/source4/lib/ldb/common/ldb_dn.c +++ b/source4/lib/ldb/common/ldb_dn.c @@ -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; } |