[committed] LRA memory leak fix (PR middle-end/56461)

Jakub Jelinek jakub@redhat.com
Tue Feb 26 21:14:00 GMT 2013


Hi!

Vladimir approved the following memory leak fix in bugzilla, I've
bootstrapped/regtested it on x86_64-linux and i686-linux and checked into
trunk.

2013-02-26  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/56461
	* lra-spills.c (lra_spill): Free spill_hard_reg at the end.

--- gcc/lra-spills.c.jj	2013-01-11 09:02:35.000000000 +0100
+++ gcc/lra-spills.c	2013-02-26 17:08:40.821486270 +0100
@@ -568,6 +568,7 @@ lra_spill (void)
   free (slots);
   free (pseudo_slots);
   free (pseudo_regnos);
+  free (spill_hard_reg);
 }
 
 /* Apply alter_subreg for subregs of regs in *LOC.  Use FINAL_P for

	Jakub



More information about the Gcc-patches mailing list