Fix memory leak in new_establish_intro_cell().
commit8e805bf0f65ffd137a6c9ed89be060e5d9ba317d
authorAlexander Færøy <ahf@torproject.org>
Sat, 23 Jun 2018 08:48:42 +0000 (23 10:48 +0200)
committerAlexander Færøy <ahf@torproject.org>
Sat, 23 Jun 2018 11:07:56 +0000 (23 13:07 +0200)
tree672edeacaf254da85317c494cd496d05a2a5564e
parentce5d055ed7e4d8e5d1c0b0b922738c87b6a8da1c
Fix memory leak in new_establish_intro_cell().

This patch fixes a memory leak in new_establish_intro_cell() that could
happen if a test assertion fails and the *cell_out value isn't properly
free'd.

See: Coverity CID 1437445
src/test/test_hs_intropoint.c