]> begriffs open source - freertos/commit
Posix: Free the allocated memory after deleting a task or ending the scheduler (...
authorReda Maher <52288047+RedaMaher@users.noreply.github.com>
Tue, 29 Sep 2020 21:06:10 +0000 (23:06 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Sep 2020 21:06:10 +0000 (14:06 -0700)
commitbaeb5af9a4d8b34c39edd2a5d72abf7661e7eb9a
treef1da41442877ab78f28b019fee67ca5fa51e527a
parent2225bb5620c883211b2afc3dab404bafbc07dd0f
Posix: Free the allocated memory after deleting a task or ending the scheduler (#181)

* Posix: Free Idle task resources after ending the scheduler

In case of using Posix simulator and ending the scheduler, it does
not free the resources allocated by the idle task. This
causes the memory checkers (Valgrind, Address Sanitizers, ..) to
complain.

* Posix: Free the condition variable memory in the correct place

In case of deleting a task from another task, the deletion happens
immediately and the thread is canceled but the memory allocated by
the task condition variable is not freed. This causes the memory
checkers (Valgrind, Address sanitizers, ..) to complain.

* Posix: End Timer thread and free its resources after ending the scheduler
portable/ThirdParty/GCC/Posix/port.c