Skip to content
Snippets Groups Projects
Commit 9604a5ba authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix memory-counting error in rephist.c. Bug 18651. (Now with actual patch)

parent c4e52968
No related branches found
No related tags found
No related merge requests found
......@@ -1793,6 +1793,7 @@ rep_hist_remove_predicted_ports(const smartlist_t *rmv_ports)
SMARTLIST_FOREACH_BEGIN(predicted_ports_list, predicted_port_t *, pp) {
if (bitarray_is_set(remove_ports, pp->port)) {
tor_free(pp);
rephist_total_alloc -= sizeof(*pp);
SMARTLIST_DEL_CURRENT(predicted_ports_list, pp);
}
} SMARTLIST_FOREACH_END(pp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment