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

[or-cvs] Freeing the same variable twice in rapid succession can som...



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

Modified Files:
	routerlist.c 
Log Message:
Freeing the same variable twice in rapid succession can sometimes cause a double-free

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- routerlist.c	7 Apr 2004 22:18:57 -0000	1.58
+++ routerlist.c	7 Apr 2004 22:25:37 -0000	1.59
@@ -400,7 +400,6 @@
   SMARTLIST_FOREACH(rl->routers, routerinfo_t *, r,
                     routerinfo_free(r));
   smartlist_free(rl->routers);
-  tor_free(rl->routers);
   tor_free(rl->software_versions);
   tor_free(rl);
 }