summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-28 02:21:40 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-28 02:21:40 +0000
commit0a2be3c9d83f86b1891bfca8b55d9b280007be79 (patch)
treeca24c5b8be7ecb83bf6661fa309bbea6834da300
parentb3177d509ea145db49e41c67c65face8b686096c (diff)
downloadtor-0a2be3c9d83f86b1891bfca8b55d9b280007be79.tar.gz
tor-0a2be3c9d83f86b1891bfca8b55d9b280007be79.zip
Fix strmap_free to release memory actually held by the strmap.
svn:r3708
-rw-r--r--src/common/container.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/container.c b/src/common/container.c
index ef96d30c54..f99aa03862 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -623,6 +623,7 @@ strmap_free(strmap_t *map, void (*free_val)(void*))
tor_free(ent->key);
if (free_val)
free_val(ent->val);
+ tor_free(ent);
}
tor_assert(SPLAY_EMPTY(&map->head));
tor_free(map);