mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix double-free on test failure
Found by coverity scan; CID 1398167.
This commit is contained in:
parent
1fbb66fa77
commit
1a45398ffa
@ -689,6 +689,7 @@ test_decode_intro_point(void *arg)
|
||||
/* Try to decode a junk string. */
|
||||
{
|
||||
hs_descriptor_free(desc);
|
||||
desc = NULL;
|
||||
ret = ed25519_keypair_generate(&signing_kp, 0);
|
||||
tt_int_op(ret, ==, 0);
|
||||
desc = helper_build_hs_desc(0, &signing_kp.pubkey);
|
||||
|
Loading…
Reference in New Issue
Block a user