[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14320: Oops. It turns out that there are some subtle differences be (in tor/trunk: . src/common)
Author: nickm
Date: 2008-04-08 13:33:29 -0400 (Tue, 08 Apr 2008)
New Revision: 14320
Modified:
tor/trunk/
tor/trunk/src/common/memarea.c
Log:
r19245@catbus: nickm | 2008-04-08 13:33:27 -0400
Oops. It turns out that there are some subtle differences between >= and <.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r19245] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/common/memarea.c
===================================================================
--- tor/trunk/src/common/memarea.c 2008-04-08 17:29:05 UTC (rev 14319)
+++ tor/trunk/src/common/memarea.c 2008-04-08 17:33:29 UTC (rev 14320)
@@ -89,7 +89,7 @@
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;