[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: fix leak
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: fix leak |
Date: |
Sun, 15 Sep 2019 12:10:46 +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 a3d272eb fix leak
a3d272eb is described below
commit a3d272eb9d1fdb130e98fc9d67198106a2aef53d
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Sep 15 12:10:44 2019 +0200
fix leak
---
src/lib/exchange_api_handle.c | 1 +
src/lib/testing_api_cmd_serialize_keys.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index bbe5f45a..80a07318 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -961,6 +961,7 @@ decode_keys_json (const json_t *resp_obj,
/* Okay, but why breaking here? It could be that the
* user redownloaded all the keys in a forced way. */
GNUNET_break_op (0 == current);
+ GNUNET_CRYPTO_rsa_public_key_free (dk.key.rsa_public_key);
continue;
}
if (key_data->denom_keys_size == key_data->num_denom_keys)
diff --git a/src/lib/testing_api_cmd_serialize_keys.c
b/src/lib/testing_api_cmd_serialize_keys.c
index 7ef03fe5..98e7cc9d 100644
--- a/src/lib/testing_api_cmd_serialize_keys.c
+++ b/src/lib/testing_api_cmd_serialize_keys.c
@@ -44,7 +44,7 @@ struct SerializeKeysState
* from, after keys serialization. This value is then needed by
* subsequent commands that have to reconnect to the exchagne.
*/
- const char *exchange_url;
+ char *exchange_url;
};
@@ -120,7 +120,7 @@ serialize_keys_cleanup (void *cls,
{
json_decref (sks->keys);
}
- GNUNET_free ((char *) sks->exchange_url);
+ GNUNET_free (sks->exchange_url);
GNUNET_free (sks);
}
--
To stop receiving notification emails like this one, please contact
address@hidden.