mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 17:17:44 -04:00
fix heap2
This commit is contained in:
parent
e79bca2cd3
commit
037326c859
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ void * pvPortMalloc( size_t xWantedSize )
|
|||
/* The wanted size must be increased so it can contain a BlockLink_t
|
||||
* structure in addition to the requested amount of bytes. */
|
||||
if( ( xWantedSize > 0 ) &&
|
||||
( ( xWantedSize + xHeapStructSize ) > xWantedSize ) ) /* Overflow check */
|
||||
( ( xWantedSize + heapSTRUCT_SIZE ) > xWantedSize ) ) /* Overflow check */
|
||||
{
|
||||
xWantedSize += heapSTRUCT_SIZE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue