Skip to content

Commit

Permalink
fix:linux:thread structure variable not freed on thread destroy
Browse files Browse the repository at this point in the history
Signed-off-by: Ajay Bhargav <[email protected]>
  • Loading branch information
ajaybhargav committed Feb 23, 2024
1 parent e2f4a29 commit 5a51b21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/linux/platform_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ void platform_thread_start(platform_thread_t* thread)

void platform_thread_destroy(platform_thread_t* thread)
{
if (NULL != thread)
if (NULL != thread) {
pthread_detach(thread->thread);
platform_memory_free(thread);
}
}


0 comments on commit 5a51b21

Please sign in to comment.