aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);