mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
bugfix: actually use the argument to strmap_free()
svn:r3640
This commit is contained in:
parent
38f53cff41
commit
b5bddd8cfd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user