fix more leaks

This commit is contained in:
Christian Grothoff 2017-06-04 12:34:12 +02:00
parent 2f74a5b00e
commit 2daa38fcde
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 2 additions and 1 deletions

View File

@ -982,6 +982,7 @@ create_wire_fee_for_method (void *cls,
break;
}
GNUNET_free (amounts);
GNUNET_free (opt);
/* handle closing fee */
GNUNET_asprintf (&opt,

View File

@ -769,7 +769,7 @@ compile_reserve_history (const struct TALER_EXCHANGEDB_ReserveHistory *rh,
ret |= 1;
GNUNET_assert (0 ==
json_array_append_new (json_history,
json_pack ("{s:s, s:O, s:O, s:o}",
json_pack ("{s:s, s:O, s:o, s:o}",
"type", "DEPOSIT",
"sender_account_details", pos->details.bank->sender_account_details,
"wire_reference", GNUNET_JSON_from_data (pos->details.bank->wire_reference,