Fix leak caused by not accepting thread's return
authorLukas Jiriste <ljiriste@student.42prague.com>
Tue, 19 Mar 2024 10:23:36 +0000 (11:23 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 10:01:33 +0000 (11:01 +0100)
commitdec64b1d3017985bc4e1b87c53361b8715adc36c
treed10a8143d83ae670dd511517975d08370462b632
parent34f24a6bc5862a13b98cc538e3b30b87abf7abf8
Fix leak caused by not accepting thread's return

The threads have alocatted memory where return value resides.
A thread has to be joined (or detached) to release this memory.
philo/main.c