diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-01-12 12:26:45 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-12 12:38:20 -0500 |
commit | fd28754dd3dce0e00304825d531348414c0a354b (patch) | |
tree | 1b03a3d937444aa16732fdb8d6f9266706c6bd10 /src/or/buffers.h | |
parent | 79515917449c7e0d92f16db0d1e5af4a0370bbab (diff) | |
download | tor-fd28754dd3dce0e00304825d531348414c0a354b.tar.gz tor-fd28754dd3dce0e00304825d531348414c0a354b.zip |
Actually release buffer freelists when handling OOM conditions.
Otherwise freeing buffers won't help for a little while.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r-- | src/or/buffers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/buffers.h b/src/or/buffers.h index 677d68d83d..b3b9003492 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -18,7 +18,7 @@ void buf_free(buf_t *buf); void buf_clear(buf_t *buf); buf_t *buf_copy(const buf_t *buf); void buf_shrink(buf_t *buf); -void buf_shrink_freelists(int free_all); +size_t buf_shrink_freelists(int free_all); void buf_dump_freelist_sizes(int severity); size_t buf_datalen(const buf_t *buf); |