diff --git a/communication_techniques/src/communication/jikes_barrier.c b/communication_techniques/src/communication/jikes_barrier.c index e4f9942..d148bdf 100644 --- a/communication_techniques/src/communication/jikes_barrier.c +++ b/communication_techniques/src/communication/jikes_barrier.c @@ -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); + } }