exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit ab8f77c785e428139ac7bd7f3375fa4379f607b0
parent 049951b644dab6f6ac8286d27a95f69892e5f2ba
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 30 Aug 2025 23:47:00 +0200

-fix memory leak

Diffstat:
Msrc/json/json_helper.c | 3+++
Msrc/lib/exchange_api_handle.c | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/json/json_helper.c b/src/json/json_helper.c @@ -281,6 +281,9 @@ clean_cspec (void *cls, struct TALER_CurrencySpecification *cspec = spec->ptr; (void) cls; + GNUNET_array_grow (cspec->common_amounts, + cspec->num_common_amounts, + 0); GNUNET_free (cspec->name); json_decref (cspec->map_alt_unit_names); } diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c @@ -2038,6 +2038,9 @@ TALER_EXCHANGE_keys_decref (struct TALER_EXCHANGE_Keys *keys) json_decref (keys->extensions); GNUNET_free (keys->cspec.name); json_decref (keys->cspec.map_alt_unit_names); + GNUNET_array_grow (keys->cspec.common_amounts, + keys->cspec.num_common_amounts, + 0); GNUNET_free (keys->wallet_balance_limit_without_kyc); GNUNET_free (keys->version); GNUNET_free (keys->currency);