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]

[tree-ssa] Fix leak in tree-ssa-pre.c


Patch says everything.
Committed as obvious.

ChangeLog:
2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
        idfs_cache at the end of the function.

Patch:
Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
retrieving revision 2.1
diff -u -p -r2.1 tree-ssa-pre.c
--- tree-ssa-pre.c	13 May 2004 06:39:49 -0000	2.1
+++ tree-ssa-pre.c	13 May 2004 23:07:57 -0000
@@ -3352,6 +3352,7 @@ execute_pre (void)
   memset (&pre_stats, 0, sizeof (struct pre_stats_d));
   free_alloc_pool (euse_node_pool);
   free_alloc_pool (eref_node_pool);
+  free_alloc_pool (ephi_use_pool);
   VARRAY_CLEAR (bexprs);
   for (i = 0; i < currbbs; i++)
     BITMAP_XFREE (pre_dfs[i]);
@@ -3362,6 +3363,7 @@ execute_pre (void)
       BITMAP_XFREE (idfs_cache[i]);

   free (dfn);
+  free (idfs_cache);
 }

static bool


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