summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-30 21:32:40 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-30 21:32:40 +0000
commite05d39d1af5f7b4321db6bd0265c814f4480488c (patch)
tree75ba4c90cc45e1eae0065674a22838f4ee6adcb0
parenta81435c64e3488f0c5d210e62d3b1d48417964b4 (diff)
downloadtor-e05d39d1af5f7b4321db6bd0265c814f4480488c.tar.gz
tor-e05d39d1af5f7b4321db6bd0265c814f4480488c.zip
fix a per-circuit memory leak
svn:r1029
-rw-r--r--src/or/onion.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 3912c450e7..123adc6e44 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -478,6 +478,7 @@ int onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t *state, rout
log_fn(LOG_DEBUG, "Contemplating last hop: choice already made: %s",
state->chosen_exit);
choice = router_get_by_nickname(state->chosen_exit);
+ smartlist_free(excludednodes);
if(!choice) {
log_fn(LOG_WARN,"Our chosen exit %s is no longer in the directory? Failing.",
state->chosen_exit);