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

Free circuits_for_buffer_stats on shutdown

parent 71fb2af6
No related branches found
No related tags found
No related merge requests found
......@@ -2545,5 +2545,11 @@ rep_hist_free_all(void)
tor_free(exit_streams);
built_last_stability_doc_at = 0;
predicted_ports_free();
if (circuits_for_buffer_stats) {
SMARTLIST_FOREACH(circuits_for_buffer_stats, circ_buffer_stats_t *, s,
tor_free(s));
smartlist_free(circuits_for_buffer_stats);
circuits_for_buffer_stats = NULL;
}
}
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