r9567@Kushana: nickm | 2006-11-20 11:05:59 -0500

Fix leak in choose_good_exit_server_general()


svn:r8969
This commit is contained in:
Nick Mathewson 2006-11-20 16:06:09 +00:00
parent 6120cb7d64
commit a667f2e514
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Changes in version 0.1.2.4-alpha - 2006-11-??
the client sends data. Previously, the connection would just hang the client sends data. Previously, the connection would just hang
until the client sent data. (Patch from tup based on patch from until the client sent data. (Patch from tup based on patch from
Zajcev Evgeny.) Zajcev Evgeny.)
- Fix a memory leak when we fail to pick an exit node.
o Minor bugfixes o Minor bugfixes
- Don't log spurious warnings when we see a circuit close reason we - Don't log spurious warnings when we see a circuit close reason we

View File

@ -1252,8 +1252,12 @@ choose_good_exit_server_general(routerlist_t *dir, int need_uptime,
"to list of all routers.", "to list of all routers.",
need_capacity?", fast":"", need_capacity?", fast":"",
need_uptime?", stable":""); need_uptime?", stable":"");
return choose_good_exit_server_general(dir, 0, 0); return choose_good_exit_server_general(dir, 0, 0);//!!!!
} }
smartlist_free(preferredexits);
smartlist_free(excludedexits);
smartlist_free(sl);
tor_free(n_supported);
log_notice(LD_CIRC, "All routers are down or won't exit -- choosing a " log_notice(LD_CIRC, "All routers are down or won't exit -- choosing a "
"doomed exit at random."); "doomed exit at random.");
} }