From fd28754dd3dce0e00304825d531348414c0a354b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sun, 12 Jan 2014 12:26:45 -0500 Subject: Actually release buffer freelists when handling OOM conditions. Otherwise freeing buffers won't help for a little while. --- src/or/buffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/buffers.h') 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); -- cgit v1.2.3-54-g00ecf