summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c
index e268c085a7..68b816f7ed 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -127,6 +127,10 @@ void rt_thread_idle_excute(void)
if (thread->cleanup != RT_NULL)
thread->cleanup(thread);
+#ifdef RT_USING_SIGNALS
+ rt_thread_free_sig(thread);
+#endif
+
/* if it's a system object, not delete it */
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
{