fix a minor leak in my recent commit

svn:r3081
This commit is contained in:
Roger Dingledine 2004-12-05 12:35:00 +00:00
parent 469135e7e2
commit 5ba3328172

View File

@ -810,6 +810,7 @@ circuit_all_predicted_ports_handled(time_t now) {
int enough;
smartlist_t *sl = circuit_get_unhandled_ports(now);
enough = (smartlist_len(sl) == 0);
SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_free(sl);
return enough;
}