gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -fix leaks


From: gnunet
Subject: [taler-exchange] branch master updated: -fix leaks
Date: Sun, 29 Oct 2023 21:44:17 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 3eaaebeb -fix leaks
3eaaebeb is described below

commit 3eaaebeb1012982327e7bc6ebf4de508d0489328
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Oct 29 21:44:14 2023 +0100

    -fix leaks
---
 src/lib/exchange_api_csr_melt.c     | 2 ++
 src/lib/exchange_api_csr_withdraw.c | 5 +++--
 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 f5887bd6..1644f00a 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 fa2b0dc8..0fe731cd 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 b4073ded..251e6d74 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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]