Commit b6b1b4f2 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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
parent 2350e487
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment