From 6fb30ce46809a1c444b66911ea846b8a3f820ce1 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 11 Jun 2016 16:59:03 +0200 Subject: fix memory leaks --- src/exchange-lib/exchange_api_reserve.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exchange-lib/exchange_api_reserve.c') diff --git a/src/exchange-lib/exchange_api_reserve.c b/src/exchange-lib/exchange_api_reserve.c index 2b07223a..926157a8 100644 --- a/src/exchange-lib/exchange_api_reserve.c +++ b/src/exchange-lib/exchange_api_reserve.c @@ -115,7 +115,7 @@ parse_reserve_history (const json_t *history, struct GNUNET_JSON_Specification hist_spec[] = { GNUNET_JSON_spec_string ("type", &type), TALER_JSON_spec_amount ("amount", - &amount), + &amount), /* 'wire' and 'signature' are optional depending on 'type'! */ GNUNET_JSON_spec_end() }; @@ -185,9 +185,9 @@ parse_reserve_history (const json_t *history, struct TALER_Amount amount_from_purpose; struct GNUNET_JSON_Specification withdraw_spec[] = { GNUNET_JSON_spec_fixed_auto ("signature", - &sig), + &sig), GNUNET_JSON_spec_fixed_auto ("details", - &withdraw_purpose), + &withdraw_purpose), GNUNET_JSON_spec_end() }; unsigned int i; -- cgit v1.2.3