Skip to content
Snippets Groups Projects
Commit 8550016e authored by Alexander Hansen Færøy's avatar Alexander Hansen Færøy
Browse files

Fix memory leak in test_channelpadding_consensus().

The relay variable is always allocated, but might not be freed before we
return from this function.

See: Coverity CID 1437431
parent d86c45bf
No related branches found
No related tags found
No related merge requests found
......@@ -745,6 +745,8 @@ test_channelpadding_consensus(void *arg)
tt_i64_op(val, OP_LE, 24*60*60*2);
done:
tor_free(relay);
free_mock_consensus();
free_fake_channeltls((channel_tls_t*)chan);
smartlist_free(connection_array);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment