mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
fix a minor leak in my recent commit
svn:r3081
This commit is contained in:
parent
469135e7e2
commit
5ba3328172
@ -810,6 +810,7 @@ circuit_all_predicted_ports_handled(time_t now) {
|
|||||||
int enough;
|
int enough;
|
||||||
smartlist_t *sl = circuit_get_unhandled_ports(now);
|
smartlist_t *sl = circuit_get_unhandled_ports(now);
|
||||||
enough = (smartlist_len(sl) == 0);
|
enough = (smartlist_len(sl) == 0);
|
||||||
|
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
|
||||||
smartlist_free(sl);
|
smartlist_free(sl);
|
||||||
return enough;
|
return enough;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user