mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
test_single_onion_poisoning: Free dir[12] on all paths
Coverity doesn't like it when there are paths to the end of the function where something doesn't get freed, even when those paths are only reachable on unit test failure. Fixes CID 1372899 and CID 1372900. Bug not in any released Tor.
This commit is contained in:
parent
9e297f8197
commit
1221c5aa02
@ -765,6 +765,8 @@ test_single_onion_poisoning(void *arg)
|
|||||||
tt_assert(ret == 0);
|
tt_assert(ret == 0);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
tor_free(dir1);
|
||||||
|
tor_free(dir2);
|
||||||
/* The test harness deletes the directories at exit */
|
/* The test harness deletes the directories at exit */
|
||||||
smartlist_free(services);
|
smartlist_free(services);
|
||||||
rend_service_free(service_1);
|
rend_service_free(service_1);
|
||||||
|
Loading…
Reference in New Issue
Block a user