mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-28 21:08:18 +08:00
Changed how the calculation of xFreeBytesRemaining is performed in the case where a block of RAM is split before being returned to the callee.
This commit is contained in:
@ -221,7 +221,7 @@ void *pvReturn = NULL;
|
||||
prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );
|
||||
}
|
||||
|
||||
xFreeBytesRemaining -= xWantedSize;
|
||||
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user