mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Fix a coverity NULL-pointer deref warning in the DNS tests.
This is CID 1340251
This commit is contained in:
parent
6b5b1a02d4
commit
428e2b7636
@ -738,6 +738,7 @@ NS(test_main)(void *arg)
|
|||||||
NS_UNMOCK(launch_resolve);
|
NS_UNMOCK(launch_resolve);
|
||||||
tor_free(on_circ);
|
tor_free(on_circ);
|
||||||
tor_free(TO_CONN(exitconn)->address);
|
tor_free(TO_CONN(exitconn)->address);
|
||||||
|
if (cache_entry)
|
||||||
tor_free(cache_entry->pending_connections);
|
tor_free(cache_entry->pending_connections);
|
||||||
tor_free(cache_entry);
|
tor_free(cache_entry);
|
||||||
tor_free(exitconn);
|
tor_free(exitconn);
|
||||||
|
Loading…
Reference in New Issue
Block a user