summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-08-21 23:02:36 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-08-21 23:02:36 +0200
commit8c29b7920ae18a46ce0527806507275783d1ae42 (patch)
tree0ff5936969a5b1b831686d1af5fbcff968dd915f /src/or/relay.c
parent75c59d1a92e0f4956bd249844c188c432aae1712 (diff)
downloadtor-8c29b7920ae18a46ce0527806507275783d1ae42.tar.gz
tor-8c29b7920ae18a46ce0527806507275783d1ae42.zip
Add some fixes after discussion with Nick.
- Refactor geoip.c by moving duplicate code into rotate_request_period(). - Don't leak memory when cleaning up cell queues. - Make sure that exit_(streams|bytes_(read|written)) are initialized in all places accessing these arrays. - Read only the last block from *stats files and ensure that its timestamp is not more than 25 hours in the past and not more than 1 hour in the future. - Stop truncating the last character when reading *stats files. The only thing that's left now is to avoid reading whole *stats files into memory.
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index a79a4c161a..c81b8311a0 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1677,7 +1677,7 @@ cell_queue_clear(cell_queue_t *queue)
queue->insertion_times->first = elem->next;
mp_pool_release(elem);
}
- queue->insertion_times = NULL;
+ tor_free(queue->insertion_times);
}
}