diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/registry/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c index 5bc0a63950..35d2025411 100644 --- a/source4/lib/registry/util.c +++ b/source4/lib/registry/util.c @@ -234,11 +234,12 @@ static WERROR get_abs_parent(TALLOC_CTX *mem_ctx, struct registry_context *ctx, return WERR_OK; } -WERROR reg_key_del_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, - const char *path) +WERROR reg_key_del_abs(struct registry_context *ctx, const char *path) { struct registry_key *parent; char *n; + const char *n; + TALLOC_CTX *mem_ctx = talloc_init("reg_key_del_abs"); WERROR error; if (!strchr(path, '\\')) { @@ -252,6 +253,8 @@ WERROR reg_key_del_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx, talloc_free(parent); talloc_free(n); } + talloc_free(mem_ctx); + return error; } |