From 3e055cc830eedaddf73456a31c5eeed2b3e9a00f Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 17 Nov 2010 08:58:21 +0100 Subject: ldb:ldb_dn.c - ldb_dn_explode - free also the extended components on error cases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Wed Nov 17 08:45:53 UTC 2010 on sn-devel-104 --- source4/lib/ldb/common/ldb_dn.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/lib/ldb/common') 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; } -- cgit