Why does Ping in 'FreeRTOS' after few minutes stop working?

There is only one task in the FreeRTOS name is “DefaultTask”.

void StartDefaultTask(void argument)
{
/ init code for LWIP /
MX_LWIP_Init();
/ USER CODE BEGIN 5 /
/ Infinite loop /
for(;;)
{
ethernetif_input(&gnetif);
sys_now();
//osDelay(1);
}
/ USER CODE END 5 */
}

After some time, “Nucleo-F207” stops responding. Could someone tell me what I do wrong?

PS - STM32CubeIDE Version: 1.9.0

Is this FreeRTOS code? If so the argument to StartDefaultTask() should be a pointer.

I don’t think anybody will be able to know what is wrong with such little information. Where did the code come from?