From b5bddd8cfdeff71fcc04553bfd8a1049ee8e90e6 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 20 Feb 2005 23:12:20 +0000 Subject: bugfix: actually use the argument to strmap_free() svn:r3640 --- src/common/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/container.c b/src/common/container.c index 1824645ad5..ef96d30c54 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -622,7 +622,7 @@ strmap_free(strmap_t *map, void (*free_val)(void*)) 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); -- cgit v1.2.3-54-g00ecf