From 91bf841c2e2997f7b39e3e757d3b88054829ed62 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 22 Feb 2010 22:15:03 +0100 Subject: s4:registry/regf.c - specify the context when freeing the "regf" variable Otherwise we get a "talloc_free with references" warning. --- source4/lib/registry/regf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/registry/regf.c') diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c index b5b676f9d8..5bc2335236 100644 --- a/source4/lib/registry/regf.c +++ b/source4/lib/registry/regf.c @@ -2042,7 +2042,7 @@ WERROR reg_create_regf_file(TALLOC_CTX *parent_ctx, } /* We can drop our own reference now that *key will have created one */ - talloc_free(regf); + talloc_unlink(NULL, regf); return WERR_OK; } -- cgit