-fix memory leak introduced by Oec

This commit is contained in:
Christian Grothoff 2022-03-19 16:04:41 +01:00
parent c4690a44bc
commit 938db9ac56
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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);