]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
registry: don't leak (to talloc_tos()) in init_registry_data().
authorMichael Adam <obnox@samba.org>
Sun, 16 Mar 2008 22:49:59 +0000 (23:49 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 17 Mar 2008 07:22:32 +0000 (08:22 +0100)
Michael

source/registry/reg_backend_db.c

index 169f8f16a78d413d67938e2a21c1e58229aca244..d9e70cd6a7d789c99c13da11460b8ad404bb574d 100644 (file)
@@ -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))) {