Commit f8bacfd7 authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

r19245@catbus: nickm | 2008-04-08 13:33:27 -0400

 Oops. It turns out that there are some subtle differences between >= and <.


svn:r14320
parent 31153d63
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment