[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] and bust another memory leak



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

Modified Files:
	circuitbuild.c 
Log Message:
and bust another memory leak


Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- circuitbuild.c	7 Dec 2004 07:48:16 -0000	1.71
+++ circuitbuild.c	7 Dec 2004 08:58:26 -0000	1.72
@@ -1000,6 +1000,7 @@
       if (router)
         break;
     }
+    SMARTLIST_FOREACH(needed_ports, char *, cp, tor_free(cp));
     smartlist_free(needed_ports);
   }