summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1954fb50419..65118b9f4c3 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;
}