diff options
author | Michael Adam <obnox@samba.org> | 2008-03-16 23:49:59 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-03-17 08:22:32 +0100 |
commit | 0ca465f05478aa40f038c697b69b055b99402551 (patch) | |
tree | 89f7986ac5672dce78b445fe91815be120126169 /source3/registry | |
parent | 7c6de9b0bdc92968368134902ed893864855786f (diff) | |
download | samba-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')
-rw-r--r-- | source3/registry/reg_backend_db.c | 2 |
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))) { |