From: Roger Dingledine Date: Fri, 30 Jan 2004 21:32:40 +0000 (+0000) Subject: fix a per-circuit memory leak X-Git-Tag: tor-0.0.2pre20~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e05d39d1af5f7b4321db6bd0265c814f4480488c;p=thirdparty%2Ftor.git fix a per-circuit memory leak svn:r1029 --- 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);