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

git-svn-id: trunk@45633 -
This commit is contained in:
florian 2020-06-10 18:53:06 +00:00
parent e9b0b02fea
commit 6698f6c56b

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