From 169ff6efea9b0ea9795effc428de0bd578644a2e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 26 Sep 2009 15:41:22 +0200 Subject: registry: Fix warning freeing talloc pointer with multiple parents. --- source4/lib/registry/regf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c index 6d4ea1b688..c5a74c7911 100644 --- a/source4/lib/registry/regf.c +++ b/source4/lib/registry/regf.c @@ -2144,7 +2144,7 @@ WERROR reg_open_regf_file(TALLOC_CTX *parent_ctx, const char *location, regf->header->data_offset); /* We can drop our own reference now that *key will have created one */ - talloc_free(regf); + talloc_unlink(parent_ctx, regf); return WERR_OK; } -- cgit