mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix memleak found by unittests.
This commit is contained in:
parent
627d2fdbf0
commit
e17f436fff
@ -2633,7 +2633,9 @@ choose_good_middle_server(uint8_t purpose,
|
||||
/** If a hidden service circuit wants a specific middle node, pin it. */
|
||||
if (middle_node_must_be_vanguard(options, purpose, cur_len)) {
|
||||
log_debug(LD_GENERAL, "Picking a sticky node (cur_len = %d)", cur_len);
|
||||
return pick_vanguard_middle_node(options, flags, cur_len, excluded);
|
||||
choice = pick_vanguard_middle_node(options, flags, cur_len, excluded);
|
||||
smartlist_free(excluded);
|
||||
return choice;
|
||||
}
|
||||
|
||||
choice = router_choose_random_node(excluded, options->ExcludeNodes, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user