commtech: Free pages when jikes barrier ends

This commit is contained in:
Thomas Preud'homme 2009-07-01 00:45:19 +02:00 committed by Thomas Preud'homme
parent e04818645a
commit ba13c18af7
1 changed files with 8 additions and 0 deletions

View File

@ -195,4 +195,12 @@ void reception(void (*on_receive)(void *))
on_receive(*buf_ptr);
while (cont && (list_cur->next == NULL));
} while (cont);
while (global_head != NULL)
{
void *tmp;
tmp = global_head;
global_head = global_head->next;
free(tmp);
}
}