Changed how the calculation of xFreeBytesRemaining is performed in the case where a block of RAM is split before being returned to the callee.

pull/1/head
Richard Barry 15 years ago
parent 65d501d718
commit 8f6e5062d4

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

Loading…
Cancel
Save