mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 14:49:47 +02:00
* fix heap block recycle flag when orphaning
git-svn-id: trunk@7805 -
This commit is contained in:
parent
8ee5966a2e
commit
afb5f32f65
@ -1482,10 +1482,9 @@ begin
|
||||
poc_next := poc^.next_free;
|
||||
{ check if this os chunk was 'recycled' i.e. taken in use again }
|
||||
if (poc^.size and ocrecycleflag) = 0 then
|
||||
begin
|
||||
free_oschunk(loc_freelists, poc)
|
||||
else
|
||||
poc^.size := poc^.size and not ocrecycleflag;
|
||||
free_oschunk(loc_freelists, poc);
|
||||
end;
|
||||
poc := poc_next;
|
||||
end;
|
||||
loc_freelists^.oslist := nil;
|
||||
|
Loading…
Reference in New Issue
Block a user