summaryrefslogtreecommitdiff
path: root/source4/lib/registry/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry/util.c')
-rw-r--r--source4/lib/registry/util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c
index fc5244a151..8c855c25ed 100644
--- a/source4/lib/registry/util.c
+++ b/source4/lib/registry/util.c
@@ -234,11 +234,11 @@ static WERROR get_abs_parent(TALLOC_CTX *mem_ctx, struct registry_context *ctx,
return WERR_OK;
}
-WERROR reg_key_del_abs(struct registry_context *ctx, const char *path)
+WERROR reg_key_del_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx,
+ const char *path)
{
struct registry_key *parent;
const char *n;
- TALLOC_CTX *mem_ctx = talloc_init("reg_key_del_abs");
WERROR error;
if (!strchr(path, '\\')) {
@@ -250,8 +250,6 @@ WERROR reg_key_del_abs(struct registry_context *ctx, const char *path)
error = reg_key_del(mem_ctx, parent, n);
}
- talloc_free(mem_ctx);
-
talloc_free(parent);
talloc_free(n);