Assert that thread_data != NULL

This commit is contained in:
John Boiles 2025-01-24 16:43:08 -08:00
parent 8110c05629
commit 9b7810acc2

View file

@ -142,6 +142,7 @@ static void prvMarkAsFreeRTOSThread( pthread_t thread )
{ {
prvInitThreadKey(); prvInitThreadKey();
uint8_t * thread_data = malloc( 1 ); uint8_t * thread_data = malloc( 1 );
configASSERT( thread_data != NULL );
*thread_data = 1; *thread_data = 1;
pthread_setspecific( xThreadKey, thread_data ); pthread_setspecific( xThreadKey, thread_data );
} }