From 44b3f3060a863a9297fdbe722bd7bf8c00e70653 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 29 Oct 2005 19:13:48 +0000 Subject: 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 --- src/or/circuitlist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or/circuitlist.c') 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); -- cgit v1.2.3-54-g00ecf