diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-10-29 21:44:14 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-10-29 21:44:14 +0100 |
commit | 3eaaebeb1012982327e7bc6ebf4de508d0489328 (patch) | |
tree | 5882efbca759d22edf82c5a9b4c2fecd338c90fd | |
parent | c6c149714c9b39844d6dee2b5339907cca5bed3c (diff) | |
download | exchange-3eaaebeb1012982327e7bc6ebf4de508d0489328.tar.xz |
-fix leaks
-rw-r--r-- | src/lib/exchange_api_csr_melt.c | 2 | ||||
-rw-r--r-- | src/lib/exchange_api_csr_withdraw.c | 5 | ||||
-rw-r--r-- | src/lib/exchange_api_handle.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/exchange_api_csr_melt.c b/src/lib/exchange_api_csr_melt.c index f5887bd60..1644f00a9 100644 --- a/src/lib/exchange_api_csr_melt.c +++ b/src/lib/exchange_api_csr_melt.c @@ -116,6 +116,8 @@ csr_ok (struct TALER_EXCHANGE_CsRMeltHandle *csrh, } csrh->cb (csrh->cb_cls, &csrr); + for (unsigned int i = 0; i<alen; i++) + TALER_denom_ewv_free (&alg_values[i]); return GNUNET_OK; } diff --git a/src/lib/exchange_api_csr_withdraw.c b/src/lib/exchange_api_csr_withdraw.c index fa2b0dc85..0fe731cd5 100644 --- a/src/lib/exchange_api_csr_withdraw.c +++ b/src/lib/exchange_api_csr_withdraw.c @@ -105,6 +105,7 @@ csr_ok (struct TALER_EXCHANGE_CsRWithdrawHandle *csrh, } csrh->cb (csrh->cb_cls, &csrr); + TALER_denom_ewv_free (&csrr.details.ok.alg_values); return GNUNET_OK; } @@ -266,8 +267,8 @@ TALER_EXCHANGE_csr_withdraw ( void -TALER_EXCHANGE_csr_withdraw_cancel (struct - TALER_EXCHANGE_CsRWithdrawHandle *csrh) +TALER_EXCHANGE_csr_withdraw_cancel ( + struct TALER_EXCHANGE_CsRWithdrawHandle *csrh) { if (NULL != csrh->job) { diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index b4073dede..251e6d74d 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -1871,6 +1871,8 @@ TALER_EXCHANGE_keys_decref (struct TALER_EXCHANGE_Keys *keys) free_fees (keys->fees, keys->fees_len); json_decref (keys->extensions); + TALER_CONFIG_free_currencies (1, + &keys->cspec); GNUNET_free (keys->wallet_balance_limit_without_kyc); GNUNET_free (keys->version); GNUNET_free (keys->currency); |