re PR middle-end/56461 (GCC is leaking lots of memory)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Feb 2013 21:13:27 +0000 (22:13 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Feb 2013 21:13:27 +0000 (22:13 +0100)
PR middle-end/56461
* lra-spills.c (lra_spill): Free spill_hard_reg at the end.

From-SVN: r196294

gcc/ChangeLog
gcc/lra-spills.c

index fc6b1d6..2bee7d9 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-26  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/56461
+       * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
+
 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
 
        * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
index 6ac80be..163ca11 100644 (file)
@@ -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