summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-02-20 23:12:20 +0000
committerRoger Dingledine <arma@torproject.org>2005-02-20 23:12:20 +0000
commitb5bddd8cfdeff71fcc04553bfd8a1049ee8e90e6 (patch)
treef530119ad8e0ace67759f516fbce395e147a3214 /src/common
parent38f53cff41c110ebc367dff29fe1b247fa244569 (diff)
downloadtor-b5bddd8cfdeff71fcc04553bfd8a1049ee8e90e6.tar.gz
tor-b5bddd8cfdeff71fcc04553bfd8a1049ee8e90e6.zip
bugfix: actually use the argument to strmap_free()
svn:r3640
Diffstat (limited to 'src/common')
-rw-r--r--src/common/container.c2
1 files changed, 1 insertions, 1 deletions
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);