Browse Source

* patch by Christo Crause: embedded heap manager: free small blocks, resolves #37204

git-svn-id: trunk@45641 -
florian 5 năm trước cách đây
mục cha
commit
58eca57feb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      rtl/embedded/heapmgr.pp

+ 2 - 0
rtl/embedded/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);