diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-04-08 17:33:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-04-08 17:33:29 +0000 |
commit | f8bacfd724cc3eea002e0c8bf9b55a0df9769cd0 (patch) | |
tree | 27d4527a55e2d14da3025ae33ee1c6a08bafb375 /src/common | |
parent | 31153d6374317b4bfaba83fafdcde5a0f3f885de (diff) | |
download | tor-f8bacfd724cc3eea002e0c8bf9b55a0df9769cd0.tar tor-f8bacfd724cc3eea002e0c8bf9b55a0df9769cd0.tar.gz |
r19245@catbus: nickm | 2008-04-08 13:33:27 -0400
Oops. It turns out that there are some subtle differences between >= and <.
svn:r14320
Diffstat (limited to 'src/common')
-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 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; |