mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-03 04:07:17 +01:00
* patch by Christo Crause: embedded heap manager: free small blocks, resolves #37204
git-svn-id: trunk@45641 -
This commit is contained in:
parent
f26afe4a6a
commit
58eca57feb
@ -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