diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-03-28 10:37:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-03-28 11:12:15 -0400 |
commit | addd18172167e549b28efc8cf1132e1b8f9d3972 (patch) | |
tree | 6b910ec4c71be4c4114a16a46249c861ee97c148 /src/or/circuitlist.h | |
parent | 65db5ae566d463dd682a2f63ddf448d04101dab6 (diff) | |
download | tor-addd18172167e549b28efc8cf1132e1b8f9d3972.tar.gz tor-addd18172167e549b28efc8cf1132e1b8f9d3972.zip |
Fix memory leak in TestingEnableCellStatsEvent
Only when we were actually flushing the cell stats to a controller
would we free them. Thus, they could stay in RAM even after the
circuit was freed (eg if we didn't have any controllers).
Fixes bug 18673; bugfix on 0.2.5.1-alpha.
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r-- | src/or/circuitlist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index e4f1f47ce6..2707b426ab 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -71,6 +71,8 @@ void assert_circuit_ok(const circuit_t *c); void circuit_free_all(void); void circuits_handle_oom(size_t current_allocation); +void circuit_clear_testing_cell_stats(circuit_t *circ); + void channel_note_destroy_pending(channel_t *chan, circid_t id); MOCK_DECL(void, channel_note_destroy_not_pending, (channel_t *chan, circid_t id)); |