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 loop.c


Andrew Pinski <pinskia@physics.uc.edu> writes:

> In loop.c's loop_optimize has a memory leak due not to freeing
> loops_info's mems which
> is allocated in insert_loop_mem which gets called from for_each_rtx.
> 
> 
> Bootstrapped on powerpc-apple-darwin7.2.0 with no regressions.
> Ok for the mainline?

This is OK.

> ChangeLog:
> 	* loop.c (loop_optimize): Free all loops_info's mems.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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