summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-17 01:05:48 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:33 +0100
commit46ea0d333e4f967c1e769339dfa3efcf1ae8c77d (patch)
treedc3023b1839db22ea9aea55735bcde3740d0b399 /source3/registry
parenta0d4c1e127e1d2b57b0d823dec5e0cf710aef0ce (diff)
downloadsamba-46ea0d333e4f967c1e769339dfa3efcf1ae8c77d.tar.gz
samba-46ea0d333e4f967c1e769339dfa3efcf1ae8c77d.tar.bz2
samba-46ea0d333e4f967c1e769339dfa3efcf1ae8c77d.zip
registry: don't leak on success path in regdb_store_keys().
Michael (This used to be commit 331d7fd2ea6d8aeb029478a6ab8d4051fa2c03fd)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 8a859301f0..6f8f95e7b5 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -618,6 +618,7 @@ bool regdb_store_keys(const char *key, REGSUBKEY_CTR *ctr)
goto fail;
}
+ TALLOC_FREE(ctx);
return true;
cancel: