summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-07-01 01:22:11 +0200
committerGünther Deschner <gd@samba.org>2010-07-01 01:22:11 +0200
commit74721bf706371d3fdc5783995a60808763fc7e6d (patch)
tree8b654292f64d19622244ef07bceb91ec7794c928 /source3/registry
parent69610484872bb8c9d52cd1b12c56a3bf99be78ae (diff)
downloadsamba-74721bf706371d3fdc5783995a60808763fc7e6d.tar.gz
samba-74721bf706371d3fdc5783995a60808763fc7e6d.tar.bz2
samba-74721bf706371d3fdc5783995a60808763fc7e6d.zip
s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().
Guenther
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 1954fb5041..65118b9f4c 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -369,7 +369,7 @@ WERROR reg_enumvalue(TALLOC_CTX *mem_ctx, struct registry_key *key,
if (pname
&& !(*pname = talloc_strdup(
mem_ctx, regval_name(blob)))) {
- SAFE_FREE(val);
+ TALLOC_FREE(val);
return WERR_NOMEM;
}