aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-03-19 16:04:41 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-03-19 16:04:41 +0100
commit938db9ac567ffc8d7bc60ba382f0f4fd81bbdaa8 (patch)
tree8999906f3f3648b25cc19535a5aaf520ab19ec62 /src
parentc4690a44bce7e1bc003065df09cd739a9ca9dc5e (diff)
-fix memory leak introduced by Oec
Diffstat (limited to 'src')
-rw-r--r--src/lib/exchange_api_handle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c
index 7649d43ea..a9713a45a 100644
--- a/src/lib/exchange_api_handle.c
+++ b/src/lib/exchange_api_handle.c
@@ -1048,12 +1048,17 @@ decode_keys_json (const json_t *resp_obj,
if (have_age_restricted_denom)
{
struct GNUNET_HashCode hcr;
+
GNUNET_CRYPTO_hash_context_finish (hash_context_restricted,
&hcr);
GNUNET_CRYPTO_hash_context_read (hash_context,
&hcr,
sizeof(struct GNUNET_HashCode));
}
+ else
+ {
+ GNUNET_CRYPTO_hash_context_abort (hash_context_restricted);
+ }
GNUNET_CRYPTO_hash_context_finish (hash_context,
&ks.hc);