diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2022-03-19 16:04:41 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2022-03-19 16:04:41 +0100 |
commit | 938db9ac567ffc8d7bc60ba382f0f4fd81bbdaa8 (patch) | |
tree | 8999906f3f3648b25cc19535a5aaf520ab19ec62 /src/lib | |
parent | c4690a44bce7e1bc003065df09cd739a9ca9dc5e (diff) | |
download | exchange-938db9ac567ffc8d7bc60ba382f0f4fd81bbdaa8.tar.xz |
-fix memory leak introduced by Oec
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/exchange_api_handle.c | 5 |
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); |