mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Fix memleak found by unittests.
This commit is contained in:
parent
627d2fdbf0
commit
e17f436fff
1 changed files with 3 additions and 1 deletions
|
@ -2633,7 +2633,9 @@ choose_good_middle_server(uint8_t purpose,
|
||||||
/** If a hidden service circuit wants a specific middle node, pin it. */
|
/** If a hidden service circuit wants a specific middle node, pin it. */
|
||||||
if (middle_node_must_be_vanguard(options, purpose, cur_len)) {
|
if (middle_node_must_be_vanguard(options, purpose, cur_len)) {
|
||||||
log_debug(LD_GENERAL, "Picking a sticky node (cur_len = %d)", 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);
|
choice = router_choose_random_node(excluded, options->ExcludeNodes, flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue