Skip to content

Commit c869ebb

Browse files
committed
fix:linux:thread structure variable not freed on thread destroy
Signed-off-by: Ajay Bhargav <ajay.bhargav@waybyte.in>
1 parent c3dd408 commit c869ebb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/linux/platform_thread.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ void platform_thread_start(platform_thread_t* thread)
5454

5555
void platform_thread_destroy(platform_thread_t* thread)
5656
{
57-
if (NULL != thread)
57+
if (NULL != thread) {
5858
pthread_detach(thread->thread);
59+
platform_memory_free(thread);
60+
}
5961
}
6062

6163

0 commit comments

Comments
 (0)