mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix strmap_free to release memory actually held by the strmap.
svn:r3708
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user