summaryrefslogtreecommitdiff
path: root/source3/registry
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
parentf4747250ea1d1090dda4c0a8a32aa2a4587ba4b4 (diff)
downloadsamba-04aa303fb11ed7b275a1268f932bb79209f77787.tar.gz
samba-04aa303fb11ed7b275a1268f932bb79209f77787.tar.bz2
samba-04aa303fb11ed7b275a1268f932bb79209f77787.zip
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')
-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 d1b43ba3e8..712cbda788 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);