commtech: Free pages when jikes barrier ends
This commit is contained in:
parent
e04818645a
commit
ba13c18af7
|
@ -195,4 +195,12 @@ void reception(void (*on_receive)(void *))
|
||||||
on_receive(*buf_ptr);
|
on_receive(*buf_ptr);
|
||||||
while (cont && (list_cur->next == NULL));
|
while (cont && (list_cur->next == NULL));
|
||||||
} while (cont);
|
} while (cont);
|
||||||
|
while (global_head != NULL)
|
||||||
|
{
|
||||||
|
void *tmp;
|
||||||
|
|
||||||
|
tmp = global_head;
|
||||||
|
global_head = global_head->next;
|
||||||
|
free(tmp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue