commtech: BUFFIX in freeing pages

Don't try to free the middle of an allocation
This commit is contained in:
Thomas Preud'homme 2009-07-01 01:48:13 +02:00 committed by Thomas Preud'homme
parent ba13c18af7
commit e90348b54c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}