[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: |
Sat, 07 May 2022 18:58:35 +0200 |
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 370ee3a4 -fix leaks
370ee3a4 is described below
commit 370ee3a417c2260441b4497754e9d5f6c6ea065b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat May 7 18:58:29 2022 +0200
-fix leaks
---
src/lib/exchange_api_handle.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 0ad8e5b7..0e76b289 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1149,6 +1149,7 @@ decode_keys_json (const json_t *resp_obj,
GNUNET_CRYPTO_hash_context_finish (hash_context_restricted,
&hcr);
+ hash_context_restricted = NULL;
GNUNET_CRYPTO_hash_context_read (hash_context,
&hcr,
sizeof(struct GNUNET_HashCode));
@@ -1156,6 +1157,7 @@ decode_keys_json (const json_t *resp_obj,
else
{
GNUNET_CRYPTO_hash_context_abort (hash_context_restricted);
+ hash_context_restricted = NULL;
}
GNUNET_CRYPTO_hash_context_finish (hash_context,
@@ -1178,6 +1180,8 @@ EXITIF_exit:
*vc = TALER_EXCHANGE_VC_PROTOCOL_ERROR;
if (NULL != hash_context)
GNUNET_CRYPTO_hash_context_abort (hash_context);
+ if (NULL != hash_context_restricted)
+ GNUNET_CRYPTO_hash_context_abort (hash_context_restricted);
return GNUNET_SYSERR;
}
@@ -1210,9 +1214,8 @@ free_key_data (struct TALER_EXCHANGE_Keys *key_data)
key_data->auditors_size,
0);
GNUNET_free (key_data->version);
- key_data->version = NULL;
GNUNET_free (key_data->currency);
- key_data->currency = NULL;
+ GNUNET_free (key_data->global_fees);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-exchange] branch master updated: -fix leaks,
gnunet <=