summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/util.c b/source4/dsdb/samdb/ldb_modules/util.c
index 2323085c34..f046abf3a6 100644
--- a/source4/dsdb/samdb/ldb_modules/util.c
+++ b/source4/dsdb/samdb/ldb_modules/util.c
@@ -1172,9 +1172,11 @@ const struct ldb_val *dsdb_module_find_dsheuristics(struct ldb_module *module,
attrs,
DSDB_FLAG_NEXT_MODULE);
if (ret == LDB_SUCCESS && res->count == 1) {
+ talloc_free(new_dn);
return ldb_msg_find_ldb_val(res->msgs[0],
"dsHeuristics");
}
+ talloc_free(new_dn);
return NULL;
}