summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-22 22:15:03 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-22 22:15:03 +0100
commit91bf841c2e2997f7b39e3e757d3b88054829ed62 (patch)
treec57af61d918fba52ea5dbd4d191b3ab6847529c4 /source4/lib/registry
parent1e986c1cb3243f7f7de4e7866e78584615ecd13e (diff)
downloadsamba-91bf841c2e2997f7b39e3e757d3b88054829ed62.tar.gz
samba-91bf841c2e2997f7b39e3e757d3b88054829ed62.tar.bz2
samba-91bf841c2e2997f7b39e3e757d3b88054829ed62.zip
s4:registry/regf.c - specify the context when freeing the "regf" variable
Otherwise we get a "talloc_free with references" warning.
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/regf.c2
1 files changed, 1 insertions, 1 deletions
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;
}