mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
conn: Fix memleaks in retry_all_listeners
Fixes #27670 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
fed2c26e60
commit
4b646e30d8
1 changed files with 3 additions and 0 deletions
|
@ -2900,6 +2900,9 @@ retry_all_listeners(smartlist_t *new_conns, int close_all_noncontrol)
|
|||
} SMARTLIST_FOREACH_END(conn);
|
||||
|
||||
smartlist_free(listeners);
|
||||
/* Cleanup any remaining listener replacement. */
|
||||
SMARTLIST_FOREACH(replacements, listener_replacement_t *, r, tor_free(r));
|
||||
smartlist_free(replacements);
|
||||
|
||||
if (old_or_port != router_get_advertised_or_port(options) ||
|
||||
old_or_port_ipv6 != router_get_advertised_or_port_by_af(options,
|
||||
|
|
Loading…
Add table
Reference in a new issue