Browse Source

* patch by Christo Crause: FreeRTOS: heap manager doesn't free small blocks, resolves #37195

git-svn-id: trunk@45633 -
florian 5 years ago
parent
commit
6698f6c56b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      rtl/freertos/heapmgr.pp

+ 2 - 0
rtl/freertos/heapmgr.pp

@@ -195,6 +195,8 @@ Unit heapmgr;
             exit;
           end;
         sz := Align(FindSize(addr)+SizeOf(pointer), sizeof(pointer));
+        if sz < MinBlock then
+          sz := MinBlock;
 
         InternalFreeMem(@pptruint(addr)[-1], sz);