[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] 02/02: free auditor data on shutdown (#505
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] 02/02: free auditor data on shutdown (#5050) |
Date: |
Sun, 04 Jun 2017 12:18:12 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 4694810d9d6dc1f8ef3168c1bd7ce0cbea642a1c
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Jun 4 12:13:23 2017 +0200
free auditor data on shutdown (#5050)
---
src/exchange-lib/exchange_api_handle.c | 11 ++++++++---
src/include/taler_exchange_service.h | 2 +-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/exchange-lib/exchange_api_handle.c
b/src/exchange-lib/exchange_api_handle.c
index 6ed868f..40e5107 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -634,16 +634,21 @@ decode_keys_json (const json_t *resp_obj,
static void
free_key_data (struct TALER_EXCHANGE_Keys *key_data)
{
- unsigned int i;
-
GNUNET_array_grow (key_data->sign_keys,
key_data->num_sign_keys,
0);
- for (i=0;i<key_data->num_denom_keys;i++)
+ for (unsigned int i=0;i<key_data->num_denom_keys;i++)
GNUNET_CRYPTO_rsa_public_key_free
(key_data->denom_keys[i].key.rsa_public_key);
GNUNET_array_grow (key_data->denom_keys,
key_data->num_denom_keys,
0);
+ for (unsigned int i=0;i<key_data->num_auditors;i++)
+ {
+ GNUNET_array_grow (key_data->auditors[i].denom_keys,
+ key_data->auditors[i].num_denom_keys,
+ 0);
+ GNUNET_free (key_data->auditors[i].auditor_url);
+ }
GNUNET_array_grow (key_data->auditors,
key_data->num_auditors,
0);
diff --git a/src/include/taler_exchange_service.h
b/src/include/taler_exchange_service.h
index 7114aa6..9a004a4 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -154,7 +154,7 @@ struct TALER_EXCHANGE_AuditorInformation
* should also be an auditor API for automated submission about
* claims of misbehaving exchange providers.
*/
- const char *auditor_url;
+ char *auditor_url;
/**
* Number of denomination keys audited by this auditor.
--
To stop receiving notification emails like this one, please contact
address@hidden