From 5ba33281721c8f5563d2a22fff0cab8b49fc8ef2 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 5 Dec 2004 12:35:00 +0000 Subject: [PATCH] fix a minor leak in my recent commit svn:r3081 --- src/or/circuitbuild.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 373f1c78a8..bdd760a377 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -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; }