mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-15 17:46:15 +02: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…
x
Reference in New Issue
Block a user