* fix heap block recycle flag when orphaning

git-svn-id: trunk@7805 -
This commit is contained in:
micha 2007-06-24 21:32:31 +00:00
parent 8ee5966a2e
commit afb5f32f65

View File

@ -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;