[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...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] Fix strmap_free to release memory actually held by the strm...
- From: nickm@xxxxxxxx (Nick Mathewson)
- Date: Sun, 27 Feb 2005 21:21:47 -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:22:10 -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-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);