commtech: BUFFIX in freeing pages
Don't try to free the middle of an allocation
This commit is contained in:
parent
ba13c18af7
commit
e90348b54c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue