diff options
author | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-10-29 19:13:48 +0000 |
commit | 44b3f3060a863a9297fdbe722bd7bf8c00e70653 (patch) | |
tree | 788a754468f090ce105ccdd897774d3a0c1703fe /src/or/circuitlist.c | |
parent | bf2be9abd75c2057e2f8f75c0480c2699c6299a5 (diff) | |
download | tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.tar.gz tor-44b3f3060a863a9297fdbe722bd7bf8c00e70653.zip |
make circ->onionskin a pointer, not a static array. moria2 was using
125000 circuit_t's after it had been up for a few weeks, which translates
to 20+ megs of wasted space.
svn:r5333
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r-- | src/or/circuitlist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c index abe083d313..5f0ec2d9b5 100644 --- a/src/or/circuitlist.c +++ b/src/or/circuitlist.c @@ -250,6 +250,7 @@ circuit_free(circuit_t *circ) circuit_free_cpath_node(circ->build_state->pending_final_cpath); } tor_free(circ->build_state); + tor_free(circ->onionskin); circuit_free_cpath(circ->cpath); if (circ->rend_splice) { circ->rend_splice->rend_splice = NULL; @@ -792,6 +793,7 @@ assert_circuit_ok(const circuit_t *c) tor_assert(c->deliver_window >= 0); tor_assert(c->package_window >= 0); if (c->state == CIRCUIT_STATE_OPEN) { + tor_assert(!c->onionskin); if (c->cpath) { tor_assert(CIRCUIT_IS_ORIGIN(c)); tor_assert(!c->n_crypto); |