summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-05 12:35:00 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-05 12:35:00 +0000
commit5ba33281721c8f5563d2a22fff0cab8b49fc8ef2 (patch)
tree75851d19180c417764e6b0f62efd1aabce05a466
parent469135e7e2b94136fb209eb50832c94cb1e8dfa5 (diff)
downloadtor-5ba33281721c8f5563d2a22fff0cab8b49fc8ef2.tar.gz
tor-5ba33281721c8f5563d2a22fff0cab8b49fc8ef2.zip
fix a minor leak in my recent commit
svn:r3081
-rw-r--r--src/or/circuitbuild.c1
1 files changed, 1 insertions, 0 deletions
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;
}