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:
Richard Barry 2010-07-20 18:46:12 +00:00
parent 65d501d718
commit 8f6e5062d4

View file

@ -221,7 +221,7 @@ void *pvReturn = NULL;
prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );
}
xFreeBytesRemaining -= xWantedSize;
xFreeBytesRemaining -= pxBlock->xBlockSize;
}
}
}