forked from epagris/FreeRTOS-Kernel
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 ) );
|
||||
}
|
||||
|
||||
xFreeBytesRemaining -= xWantedSize;
|
||||
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user