mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 21:41:59 -04: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:
parent
65d501d718
commit
8f6e5062d4
|
@ -221,7 +221,7 @@ void *pvReturn = NULL;
|
||||||
prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );
|
prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
xFreeBytesRemaining -= xWantedSize;
|
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue