]> git.sur5r.net Git - freertos/commitdiff
Changed how the calculation of xFreeBytesRemaining is performed in the case where...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 20 Jul 2010 18:46:12 +0000 (18:46 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 20 Jul 2010 18:46:12 +0000 (18:46 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1037 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/MemMang/heap_2.c

index 43440575c5d30d94ab8acde5b74903c1450e7f84..b68b73a6e52d983ae196373d7186e47dd4062acd 100644 (file)
@@ -221,7 +221,7 @@ void *pvReturn = NULL;
                                        prvInsertBlockIntoFreeList( ( pxNewBlockLink ) );\r
                                }\r
                                \r
-                               xFreeBytesRemaining -= xWantedSize;\r
+                               xFreeBytesRemaining -= pxBlock->xBlockSize;\r
                        }\r
                }\r
        }\r