Skip to content

Commit 3c31ea9

Browse files
authored
Fix configDEINIT_TLS_BLOCK (#73)
configDEINIT_TLS_BLOCK() should deinit the TLS block of the task to being deleted instead of the currently running task.
1 parent a286632 commit 3c31ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5695,7 +5695,7 @@ static void prvCheckTasksWaitingTermination( void )
56955695
#if ( ( configUSE_NEWLIB_REENTRANT == 1 ) || ( configUSE_C_RUNTIME_TLS_SUPPORT == 1 ) )
56965696
{
56975697
/* Free up the memory allocated for the task's TLS Block. */
5698-
configDEINIT_TLS_BLOCK( pxCurrentTCB->xTLSBlock );
5698+
configDEINIT_TLS_BLOCK( pxTCB->xTLSBlock );
56995699
}
57005700
#endif
57015701

0 commit comments

Comments
 (0)