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

[or-cvs] Fix strmap_free to release memory actually held by the strm...



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

Modified Files:
	container.c 
Log Message:
Fix strmap_free to release memory actually held by the strmap.

Index: container.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/container.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- container.c	20 Feb 2005 23:12:20 -0000	1.19
+++ container.c	28 Feb 2005 02:21:40 -0000	1.20
@@ -623,6 +623,7 @@
     tor_free(ent->key);
     if (free_val)
       free_val(ent->val);
+    tor_free(ent);
   }
   tor_assert(SPLAY_EMPTY(&map->head));
   tor_free(map);