From f8bacfd724cc3eea002e0c8bf9b55a0df9769cd0 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 8 Apr 2008 17:33:29 +0000 Subject: r19245@catbus: nickm | 2008-04-08 13:33:27 -0400 Oops. It turns out that there are some subtle differences between >= and <. svn:r14320 --- src/common/memarea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/memarea.c b/src/common/memarea.c index d4657b702..67bebeccd 100644 --- a/src/common/memarea.c +++ b/src/common/memarea.c @@ -89,7 +89,7 @@ alloc_chunk(size_t sz) static void chunk_free(memarea_chunk_t *chunk) { - if (freelist_len >= MAX_FREELIST_LEN) { + if (freelist_len < MAX_FREELIST_LEN) { ++freelist_len; chunk->next_chunk = freelist; freelist = chunk; -- cgit v1.2.3