Implemented configUSE_MALLOC_FAILED_HOOK

Thank You very much, Johnny!
This commit is contained in:
Sven Bieg 2024-04-16 18:04:49 +02:00
parent 7155a2c13b
commit 4a4d0e4c39

View file

@ -115,6 +115,10 @@ else
{
buf=heap_alloc_from_foot(heap, size);
}
#if(configUSE_MALLOC_FAILED_HOOK==1)
if(buf==NULL)
vApplicationMallocFailedHook();
#endif
return buf;
}