mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 20:14:14 +02:00
* after r34939, it was not taken care of the extra storage needed for the size field, fixed, should fix #32875
git-svn-id: trunk@37883 -
This commit is contained in:
parent
acf6fde3cf
commit
d315d3cc96
@ -49,10 +49,10 @@ Unit heapmgr;
|
|||||||
p, prev: PHeapBlock;
|
p, prev: PHeapBlock;
|
||||||
AllocSize, RestSize: ptruint;
|
AllocSize, RestSize: ptruint;
|
||||||
begin
|
begin
|
||||||
if size<MinBlock then
|
if size+sizeof(PtrUInt)<MinBlock then
|
||||||
AllocSize := MinBlock
|
AllocSize := MinBlock
|
||||||
else
|
else
|
||||||
AllocSize := align(size, sizeof(pointer));
|
AllocSize := align(size+sizeof(PtrUInt), sizeof(pointer));
|
||||||
|
|
||||||
p := Blocks;
|
p := Blocks;
|
||||||
prev := nil;
|
prev := nil;
|
||||||
|
Loading…
Reference in New Issue
Block a user