From e90348b54ca21ef2043de280e37dfefc00804fac Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 1 Jul 2009 01:48:13 +0200 Subject: [PATCH] commtech: BUFFIX in freeing pages Don't try to free the middle of an allocation --- communication_techniques/src/communication/jikes_barrier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/communication_techniques/src/communication/jikes_barrier.c b/communication_techniques/src/communication/jikes_barrier.c index d148bdf..6e0772f 100644 --- a/communication_techniques/src/communication/jikes_barrier.c +++ b/communication_techniques/src/communication/jikes_barrier.c @@ -199,7 +199,7 @@ void reception(void (*on_receive)(void *)) { void *tmp; - tmp = global_head; + tmp = (void *) ((uintptr_t) global_head & ~BUFFER_MASK); global_head = global_head->next; free(tmp); }