summaryrefslogtreecommitdiff
path: root/source3/registry/reg_api.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-12 08:18:04 +0200
committerAndreas Schneider <asn@samba.org>2012-04-25 14:31:09 +0200
commit04aa303fb11ed7b275a1268f932bb79209f77787 (patch)
tree16822401aa815be61df086d78814647175421c8c /source3/registry/reg_api.c
parentf4747250ea1d1090dda4c0a8a32aa2a4587ba4b4 (diff)
downloadsamba-04aa303fb11ed7b275a1268f932bb79209f77787.tar.gz
s3:registry: don't leak the old contents when updating the value cache
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/registry/reg_api.c')
-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 d1b43ba3e89..712cbda7888 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -89,6 +89,7 @@ static WERROR fill_value_cache(struct registry_key *key)
}
}
+ TALLOC_FREE(key->values);
werr = regval_ctr_init(key, &(key->values));
W_ERROR_NOT_OK_RETURN(werr);