summaryrefslogtreecommitdiff
path: root/source3/registry/reg_backend_db.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-03-16 23:49:59 +0100
committerMichael Adam <obnox@samba.org>2008-03-17 08:22:32 +0100
commit0ca465f05478aa40f038c697b69b055b99402551 (patch)
tree89f7986ac5672dce78b445fe91815be120126169 /source3/registry/reg_backend_db.c
parent7c6de9b0bdc92968368134902ed893864855786f (diff)
downloadsamba-0ca465f05478aa40f038c697b69b055b99402551.tar.gz
samba-0ca465f05478aa40f038c697b69b055b99402551.tar.bz2
samba-0ca465f05478aa40f038c697b69b055b99402551.zip
registry: don't leak (to talloc_tos()) in init_registry_data().
Michael (This used to be commit 7fd0ae3edce8a6ae913344cc0974181c19179b23)
Diffstat (limited to 'source3/registry/reg_backend_db.c')
-rw-r--r--source3/registry/reg_backend_db.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 169f8f16a7..d9e70cd6a7 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -189,6 +189,8 @@ static bool init_registry_data( void )
/* loop over all of the predefined values and add each component */
+ frame = talloc_stackframe();
+
for (i=0; builtin_registry_values[i].path != NULL; i++) {
if (!(values = TALLOC_ZERO_P(talloc_tos(), REGVAL_CTR))) {