mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Bandaid workaround to make cvs not crash tor clients.
This is not a real fix. I didn't look at the rest of the code. Nick? svn:r5455
This commit is contained in:
@@ -760,8 +760,10 @@ strmap_iter_next_rmv(strmap_t *map, strmap_iter_t *iter)
|
||||
tor_assert(map);
|
||||
tor_assert(iter);
|
||||
next = HT_NEXT_RMV(strmap_tree, &map->head, iter);
|
||||
tor_free((*iter)->key);
|
||||
tor_free(*iter);
|
||||
if (*iter) {
|
||||
tor_free((*iter)->key);
|
||||
tor_free(*iter);
|
||||
}
|
||||
return next;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user