diff options
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 10d05f1c15..e759b5b42b 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -98,6 +98,10 @@ static void _Thread_Free( Thread_Control *the_thread ) _Workspace_Free( the_thread->Start.tls_area ); +#if defined(RTEMS_SMP) + _ISR_lock_Destroy( &the_thread->Lock.Default ); +#endif + _Objects_Free( _Objects_Get_information_id( the_thread->Object.id ), &the_thread->Object |