Skip to content

Commit 4caadb7

Browse files
committed
fix:RT-Thread:thread is not deleted
This patch fix the issue where platform_thread_destroy do not actually delete the thread created, only memory free was done. Signed-off-by: Ajay Bhargav <ajay.bhargav@waybyte.in>
1 parent 31fdc64 commit 4caadb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/RT-Thread/platform_thread.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void platform_thread_start(platform_thread_t* thread)
5959

6060
void platform_thread_destroy(platform_thread_t* thread)
6161
{
62+
rt_thread_delete(thread->thread);
6263
platform_memory_free(thread);
6364
}
6465

0 commit comments

Comments
 (0)