Line 417 states "timer_entry_ptr = (TIMER_ENTRY_STRUCT_PTR)_mem_alloc_system_zero( ......."
Then lines 448 and following state:
"if (_lwsem_wait(&timer_component_ptr->TIMER_ENTRIES_LWSEM) != MQX_OK)
{
_task_set_error(MQX_INVALID_LWSEM);
return(TIMER_NULL_ID);
}"
... thus exiting without freeing timer_entry_ptr.
解決済! 解決策の投稿を見る。
Fred;
You are correct. This same error also occurs elsewhere in the file (on each of the _timer_start_..._internal functions). The timer code has been refactored for MQXv5, and this has been fixed.
Craig
Fred;
You are correct. This same error also occurs elsewhere in the file (on each of the _timer_start_..._internal functions). The timer code has been refactored for MQXv5, and this has been fixed.
Craig
OK, great, but what about a fix for 4.2?