From 938db9ac567ffc8d7bc60ba382f0f4fd81bbdaa8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 19 Mar 2022 16:04:41 +0100 Subject: -fix memory leak introduced by Oec --- src/lib/exchange_api_handle.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/exchange_api_handle.c') diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index 7649d43e..a9713a45 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); -- cgit v1.2.3