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

git-svn-id: trunk@45641 -
This commit is contained in:
florian 2020-06-12 20:50:45 +00:00
parent f26afe4a6a
commit 58eca57feb

View File

@ -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);