mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:39:25 +02:00
* patch by Christo Crause: FreeRTOS: heap manager doesn't free small blocks, resolves #37195
git-svn-id: trunk@45633 -
This commit is contained in:
parent
e9b0b02fea
commit
6698f6c56b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user