This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix leak in gcse-after-reload


On May 10, 2004, at 08:49, Mostafa Hagog wrote:


Hi Andrew, We thought that the garbage collector of gcc should take care of this memory leek, that's why we didn't take care of it. If this isn't the case then the fix is okay with me.

ChangeLog:


* gcse.c (eliminate_partially_redundant_loads): Instead of returning
early,
goto a cleanup label. After the cleanup, free the allocated memory.



I committed this as obvious after Mostafa said he was fine with it.


Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]