From 0ca465f05478aa40f038c697b69b055b99402551 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 16 Mar 2008 23:49:59 +0100 Subject: registry: don't leak (to talloc_tos()) in init_registry_data(). Michael (This used to be commit 7fd0ae3edce8a6ae913344cc0974181c19179b23) --- source3/registry/reg_backend_db.c | 2 ++ 1 file changed, 2 insertions(+) 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))) { -- cgit