* fixed memory leak with temp. variables, fixes #7282

git-svn-id: trunk@4998 -
This commit is contained in:
florian 2006-10-22 08:14:06 +00:00
parent 01afee1f73
commit dde9ad4755

View File

@ -376,6 +376,9 @@ interface
begin
location_reset(tempinfo^.location,LOC_REFERENCE,def_cgsize(tempinfo^.restype.def));
tg.GetTempTyped(current_asmdata.CurrAsmList,tempinfo^.restype.def,tempinfo^.temptype,tempinfo^.location.reference);
{ the temp could have been used previously either because the memory location was reused or
because we're in a loop }
cg.g_finalize(current_asmdata.CurrAsmList,tempinfo^.restype.def,tempinfo^.location.reference);
end
else if tempinfo^.may_be_in_reg then
begin