From patchwork Tue Feb 26 21:14:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [committed] LRA memory leak fix (PR middle-end/56461) Date: Tue, 26 Feb 2013 11:14:43 -0000 From: Jakub Jelinek X-Patchwork-Id: 223399 Message-Id: <20130226211443.GA12913@tucnak.redhat.com> To: gcc-patches@gcc.gnu.org Cc: Vladimir Makarov 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 PR middle-end/56461 * lra-spills.c (lra_spill): Free spill_hard_reg at the end. Jakub --- 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