mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix a use-after-free in test_circuitlist.c
Found by clang-3.4 analyzers.
This commit is contained in:
parent
d769cab3e5
commit
98b1aad201
@ -150,13 +150,13 @@ test_clist_maps(void *arg)
|
||||
tt_assert(! circuit_id_in_use_on_channel(100, ch1));
|
||||
|
||||
done:
|
||||
tor_free(ch1);
|
||||
tor_free(ch2);
|
||||
tor_free(ch3);
|
||||
if (or_c1)
|
||||
circuit_free(TO_CIRCUIT(or_c1));
|
||||
if (or_c2)
|
||||
circuit_free(TO_CIRCUIT(or_c2));
|
||||
tor_free(ch1);
|
||||
tor_free(ch2);
|
||||
tor_free(ch3);
|
||||
UNMOCK(circuitmux_attach_circuit);
|
||||
UNMOCK(circuitmux_detach_circuit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user