aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-04-07 14:59:28 -0400
committerNick Mathewson <nickm@torproject.org>2011-04-07 14:59:28 -0400
commit403b6cfdedee7ebc8fe0b5d1c187e8ae3611aec1 (patch)
treeb0a4ec15fd42db731f8dafca995a4a2a15cf27bd /src/or/rephist.c
parent71fb2af62c0a60fee94f984b782531a5d492b055 (diff)
downloadtor-403b6cfdedee7ebc8fe0b5d1c187e8ae3611aec1.tar
tor-403b6cfdedee7ebc8fe0b5d1c187e8ae3611aec1.tar.gz
Free circuits_for_buffer_stats on shutdown
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 74e156f33..9b7eefecf 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -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;
+ }
}