]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a per-circuit memory leak
authorRoger Dingledine <arma@torproject.org>
Fri, 30 Jan 2004 21:32:40 +0000 (21:32 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 30 Jan 2004 21:32:40 +0000 (21:32 +0000)
svn:r1029

src/or/onion.c

index 3912c450e70afb58d4d26a5f51955b069f3c73d4..123adc6e4481bee8f61ee6505f4224d5e6c78400 100644 (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",
            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);