summaryrefslogtreecommitdiff
path: root/src/json/json_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json/json_helper.c')
-rw-r--r--src/json/json_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index 70326b924..746b39e49 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -38,9 +38,9 @@ TALER_JSON_from_amount (const struct TALER_Amount *amount)
char *amount_str = TALER_amount_to_string (amount);
GNUNET_assert (NULL != amount_str);
-
{
json_t *j = json_string (amount_str);
+
GNUNET_free (amount_str);
return j;
}