summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-09-26 15:41:22 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-09-26 15:41:22 +0200
commit169ff6efea9b0ea9795effc428de0bd578644a2e (patch)
treeb66f4b97ade6321c5c1835d40cf5c4f6cf4aff15 /source4/lib
parent6b595a93c1eb380ef6120dbbcc0c6e6bb7092deb (diff)
downloadsamba-169ff6efea9b0ea9795effc428de0bd578644a2e.tar.gz
samba-169ff6efea9b0ea9795effc428de0bd578644a2e.tar.bz2
samba-169ff6efea9b0ea9795effc428de0bd578644a2e.zip
registry: Fix warning freeing talloc pointer with multiple parents.
Diffstat (limited to 'source4/lib')
-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 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;
}