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

[or-cvs] Backport: Fix strmap_free to release memory actually held b...



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

Modified Files:
      Tag: tor-0_0_9-patches
	container.c 
Log Message:
Backport: 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.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- container.c	16 Dec 2004 21:10:50 -0000	1.15
+++ container.c	28 Feb 2005 02:23:12 -0000	1.15.2.1
@@ -614,6 +614,7 @@
     tor_free(ent->key);
     if (free_val)
       tor_free(ent->val);
+    tor_free(ent);
   }
   tor_assert(SPLAY_EMPTY(&map->head));
   tor_free(map);