diff options
author | Günther Deschner <gd@samba.org> | 2010-07-01 01:22:11 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-07-01 01:22:11 +0200 |
commit | 74721bf706371d3fdc5783995a60808763fc7e6d (patch) | |
tree | 8b654292f64d19622244ef07bceb91ec7794c928 | |
parent | 69610484872bb8c9d52cd1b12c56a3bf99be78ae (diff) | |
download | samba-74721bf706371d3fdc5783995a60808763fc7e6d.tar.gz samba-74721bf706371d3fdc5783995a60808763fc7e6d.tar.bz2 samba-74721bf706371d3fdc5783995a60808763fc7e6d.zip |
s3-registry: fix malloc/talloc mismatch upon free in reg_enumvalue().
Guenther
-rw-r--r-- | source3/registry/reg_api.c | 2 |
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; } |