summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-07-14 12:19:01 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-14 21:48:12 +0200
commit7e3d7505ddf2bdcf0d66273d9b96058969e2459b (patch)
tree2d97f9323ae6fe0dbceaf061d9b2eb6718f17fb5 /source3/registry
parent1aae898908fd0b1ae78742aa506e1edc395ed904 (diff)
downloadsamba-7e3d7505ddf2bdcf0d66273d9b96058969e2459b.tar.gz
samba-7e3d7505ddf2bdcf0d66273d9b96058969e2459b.tar.bz2
samba-7e3d7505ddf2bdcf0d66273d9b96058969e2459b.zip
s3:registry avoid leaking an old regsubkey_ctr on regsubkey_ctr_init
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 51bd98e939..c66a95e406 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -110,6 +110,7 @@ static WERROR fill_subkey_cache(struct registry_key *key)
}
}
+ TALLOC_FREE(key->subkeys);
werr = regsubkey_ctr_init(key, &(key->subkeys));
W_ERROR_NOT_OK_RETURN(werr);