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] tree-data-ref.c: Fix memory leak.


On Fri, 2004-12-10 at 12:14 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to fix memory leak.
> 
> In free_data_refs, we free the VARRAY in each data_reference object,
> but we somehow don't free the data_reference object itself.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* tree-data-ref.c (free_data_refs): Free each data_reference
> 	object.
I'm going to assume that you looked at the various routines which use
free_data_refs to verify that they did not hang on to any of the
struct data_reference * objects.

Approved.

Jeff



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