summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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);