[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Backport: Fix strmap_free to release memory actually held b...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] Backport: Fix strmap_free to release memory actually held b...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Sun, 27 Feb 2005 21:23:15 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 27 Feb 2005 21:23:33 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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);