summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/ldb/common/ldb_dn.c5
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;
}