mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-29 13:27:08 +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 ) );
|
prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
xFreeBytesRemaining -= xWantedSize;
|
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user