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-outof-ssa.c


This patches fixes a leak in tree-outof-ssa.c which looks like someone just
forgot to free the map. This is the biggest leak I saw on the tree-ssa so
far.


Thanks,
Andrew Pinski


ChangeLog:


	* tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
	the end of the block.

Index: tree-outof-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-outof-ssa.c,v
retrieving revision 1.1.2.5
diff -u -p -r1.1.2.5 tree-outof-ssa.c
--- tree-outof-ssa.c	30 Apr 2004 19:47:52 -0000	1.1.2.5
+++ tree-outof-ssa.c	7 May 2004 14:48:18 -0000
@@ -2098,6 +2098,9 @@ rewrite_vars_out_of_ssa (bitmap vars)
 	  var_ann (referenced_var (i))->out_of_ssa_tag = 0;
 	});

+      /* Free the map as we are done with it.  */
+      delete_var_map (map);
+
     }
 }


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