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>
Tue, 19 Mar 2024 10:23:36 +0000 (11:23 +0100)
commit29312b7a7c73d926dea8e8abdd9f1bd5f6169fc3
treeb8693d275d39bc297990f258d1949cfd9d00d0c7
parenta97ed7ff6f3b0e64e1950f8f398168681065caa5
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