From 0a2be3c9d83f86b1891bfca8b55d9b280007be79 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 28 Feb 2005 02:21:40 +0000 Subject: Fix strmap_free to release memory actually held by the strmap. svn:r3708 --- src/common/container.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/container.c') 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); -- cgit v1.2.3-54-g00ecf