This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix leak in loop.c
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 02 Jan 2004 15:10:22 -0800
- Subject: Re: [PATCH] Fix leak in loop.c
- References: <91D078ED-3CD3-11D8-8E82-000393A6D2F2@physics.uc.edu>
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>