mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-10 08:07:46 -04:00
Implemented configUSE_MALLOC_FAILED_HOOK
Thank You very much, Johnny!
This commit is contained in:
parent
7155a2c13b
commit
4a4d0e4c39
1 changed files with 4 additions and 0 deletions
|
@ -115,6 +115,10 @@ else
|
||||||
{
|
{
|
||||||
buf=heap_alloc_from_foot(heap, size);
|
buf=heap_alloc_from_foot(heap, size);
|
||||||
}
|
}
|
||||||
|
#if(configUSE_MALLOC_FAILED_HOOK==1)
|
||||||
|
if(buf==NULL)
|
||||||
|
vApplicationMallocFailedHook();
|
||||||
|
#endif
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue