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

[or-cvs] fix a minor 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:
	rendservice.c 
Log Message:
fix a minor memory leak


Index: rendservice.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/rendservice.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- rendservice.c	22 Feb 2005 08:18:35 -0000	1.117
+++ rendservice.c	27 Feb 2005 22:08:01 -0000	1.118
@@ -77,13 +77,11 @@
   tor_free(service);
 }
 
-/** Release all the storage held in rend_service_list, and allocate a new,
- * empty rend_service_list.
+/** Release all the storage held in rend_service_list.
  */
 void rend_service_free_all(void)
 {
   if (!rend_service_list) {
-    rend_service_list = smartlist_create();
     return;
   }
   SMARTLIST_FOREACH(rend_service_list, rend_service_t*, ptr,