diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index aa101aff6d..e1ffda4e1b 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -1000,6 +1000,7 @@ static routerinfo_t *choose_good_exit_server_general(routerlist_t *dir) if (router) break; } + SMARTLIST_FOREACH(needed_ports, char *, cp, tor_free(cp)); smartlist_free(needed_ports); }