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

[or-cvs] Fix a few more instances of memory not freed on exit (found...



Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv31863/src/or

Modified Files:
	dirserv.c 
Log Message:
Fix a few more instances of memory not freed on exit (found by weasel).

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- dirserv.c	22 Mar 2005 03:27:51 -0000	1.144
+++ dirserv.c	23 Mar 2005 06:20:50 -0000	1.145
@@ -990,6 +990,10 @@
   tor_free(the_directory_z);
   the_directory_len = 0;
   the_directory_z_len = 0;
+  tor_free(the_runningrouters);
+  tor_free(the_runningrouters_z);
+  the_runningrouters_len = 0;
+  the_runningrouters_z_len = 0;
   tor_free(cached_directory.dir);
   tor_free(cached_directory.dir_z);
   tor_free(cached_runningrouters.dir);