[or-cvs] fix a per-circuit memory leak

Roger Dingledine arma at seul.org
Fri Jan 30 21:32:43 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	onion.c 
Log Message:
fix a per-circuit memory leak


Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- onion.c	30 Jan 2004 19:31:39 -0000	1.119
+++ onion.c	30 Jan 2004 21:32:40 -0000	1.120
@@ -478,6 +478,7 @@
     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);



More information about the tor-commits mailing list