diff mbox

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

Message ID 20130226211443.GA12913@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Feb. 26, 2013, 9:14 p.m. UTC
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.


	Jakub
diff mbox

Patch

--- 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