From 3e055cc830eedaddf73456a31c5eeed2b3e9a00f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Wed, 17 Nov 2010 08:58:21 +0100 Subject: [PATCH] ldb:ldb_dn.c - ldb_dn_explode - free also the extended components on error cases MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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(-) diff --git a/source4/lib/ldb/common/ldb_dn.c b/source4/lib/ldb/common/ldb_dn.c index 69018b7bfc7..a17d5166b1c 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; } -- 2.34.1