diff options
Diffstat (limited to 'src/common/memarea.c')
-rw-r--r-- | src/common/memarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/memarea.c b/src/common/memarea.c index d4657b7027..67bebeccd3 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; |