[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[or-cvs] stop duplicate free



Update of /home/or/cvsroot/src/or
In directory moria.seul.org:/home/arma/work/onion/cvs/src/or

Modified Files:
	routers.c 
Log Message:
stop duplicate free


Index: routers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routers.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- routers.c	26 Sep 2002 13:17:14 -0000	1.13
+++ routers.c	26 Sep 2002 13:19:13 -0000	1.14
@@ -191,7 +191,8 @@
 
   assert(i != rarray_len); /* if so then router_get_by_addr_port should have returned null */
 
-  free(router);
+//  free(router); /* don't actually free; we'll free it when we free the whole thing */
+
 //  log(LOG_DEBUG,"router_forget_router(): Forgot about router %d:%d",addr,port);
   for(; i<rarray_len-1;i++)
     router_array[i] = router_array[i+1];