[or-cvs] bugfix: actually use the argument to strmap_free()

Roger Dingledine arma at seul.org
Sun Feb 20 23:12:22 UTC 2005


Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common

Modified Files:
	container.c 
Log Message:
bugfix: actually use the argument to strmap_free()


Index: container.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/container.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- container.c	19 Feb 2005 03:02:33 -0000	1.18
+++ container.c	20 Feb 2005 23:12:20 -0000	1.19
@@ -622,7 +622,7 @@
     SPLAY_REMOVE(strmap_tree, &map->head, ent);
     tor_free(ent->key);
     if (free_val)
-      tor_free(ent->val);
+      free_val(ent->val);
   }
   tor_assert(SPLAY_EMPTY(&map->head));
   tor_free(map);



More information about the tor-commits mailing list