fix a per-circuit memory leak

svn:r1029
This commit is contained in:
Roger Dingledine 2004-01-30 21:32:40 +00:00
parent a81435c64e
commit e05d39d1af

View File

@ -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", log_fn(LOG_DEBUG, "Contemplating last hop: choice already made: %s",
state->chosen_exit); state->chosen_exit);
choice = router_get_by_nickname(state->chosen_exit); choice = router_get_by_nickname(state->chosen_exit);
smartlist_free(excludednodes);
if(!choice) { if(!choice) {
log_fn(LOG_WARN,"Our chosen exit %s is no longer in the directory? Failing.", log_fn(LOG_WARN,"Our chosen exit %s is no longer in the directory? Failing.",
state->chosen_exit); state->chosen_exit);