mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 13:06:18 +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;
|
exit;
|
||||||
end;
|
end;
|
||||||
sz := Align(FindSize(addr)+SizeOf(pointer), sizeof(pointer));
|
sz := Align(FindSize(addr)+SizeOf(pointer), sizeof(pointer));
|
||||||
|
if sz < MinBlock then
|
||||||
|
sz := MinBlock;
|
||||||
|
|
||||||
InternalFreeMem(@pptruint(addr)[-1], sz);
|
InternalFreeMem(@pptruint(addr)[-1], sz);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user