diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-11-20 11:56:35 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-11-20 11:57:45 -0500 |
commit | eabcab2b7caab75ba8607c7dac225e4533998e80 (patch) | |
tree | 9c41b29130260e1b8aaf57f966c1f9f4b0891118 /src/or/buffers.c | |
parent | 91ec6f7269bd7a5b73629f38e9779e84a0fb84f2 (diff) | |
download | tor-eabcab2b7caab75ba8607c7dac225e4533998e80.tar.gz tor-eabcab2b7caab75ba8607c7dac225e4533998e80.zip |
Count freed buffer bytes from buffers when oom-killing circuits.
Also, aggressively clear the buffers to try to make their bytes go
away fast rather than waiting for the close-marked-connection code
to get 'em.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 4b176a83e6..71b61b1890 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -547,7 +547,7 @@ buf_allocation(const buf_t *buf) size_t total = 0; const chunk_t *chunk; for (chunk = buf->head; chunk; chunk = chunk->next) { - total += chunk->memlen; + total += CHUNK_ALLOC_SIZE(chunk->memlen); } return total; } |