-fix memory leak introduced by Oec
This commit is contained in:
parent
c4690a44bc
commit
938db9ac56
@ -1048,12 +1048,17 @@ decode_keys_json (const json_t *resp_obj,
|
|||||||
if (have_age_restricted_denom)
|
if (have_age_restricted_denom)
|
||||||
{
|
{
|
||||||
struct GNUNET_HashCode hcr;
|
struct GNUNET_HashCode hcr;
|
||||||
|
|
||||||
GNUNET_CRYPTO_hash_context_finish (hash_context_restricted,
|
GNUNET_CRYPTO_hash_context_finish (hash_context_restricted,
|
||||||
&hcr);
|
&hcr);
|
||||||
GNUNET_CRYPTO_hash_context_read (hash_context,
|
GNUNET_CRYPTO_hash_context_read (hash_context,
|
||||||
&hcr,
|
&hcr,
|
||||||
sizeof(struct GNUNET_HashCode));
|
sizeof(struct GNUNET_HashCode));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GNUNET_CRYPTO_hash_context_abort (hash_context_restricted);
|
||||||
|
}
|
||||||
|
|
||||||
GNUNET_CRYPTO_hash_context_finish (hash_context,
|
GNUNET_CRYPTO_hash_context_finish (hash_context,
|
||||||
&ks.hc);
|
&ks.hc);
|
||||||
|
Loading…
Reference in New Issue
Block a user