diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-01 21:56:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-01 21:56:49 -0400 |
commit | 17d5734df47bc4b9bd40f878e492eb676ca47ae8 (patch) | |
tree | 4581bf50b2e1deac840b4122eca1ea247efa86e5 /src/or/circuitlist.c | |
parent | 86f619d0d34657e96d8ae3e83a197382bf6ba344 (diff) | |
parent | 852fd1819e911dfafef624640d9b54157073c326 (diff) | |
download | tor-17d5734df47bc4b9bd40f878e492eb676ca47ae8.tar.gz tor-17d5734df47bc4b9bd40f878e492eb676ca47ae8.zip |
Merge remote-tracking branch 'public/bug11278'
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index 9313325508..b03b590aa5 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -833,6 +833,18 @@ circuit_free_all(void) smartlist_free(circuits_pending_chans); circuits_pending_chans = NULL; + { + chan_circid_circuit_map_t **elt, **next, *c; + for (elt = HT_START(chan_circid_map, &chan_circid_map); + elt; + elt = next) { + c = *elt; + next = HT_NEXT_RMV(chan_circid_map, &chan_circid_map, elt); + + tor_assert(c->circuit == NULL); + tor_free(c); + } + } HT_CLEAR(chan_circid_map, &chan_circid_map); } |