From patchwork Tue Aug 10 03:00:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Froyd X-Patchwork-Id: 61331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 491A4B70AB for ; Tue, 10 Aug 2010 13:00:50 +1000 (EST) Received: (qmail 15565 invoked by alias); 10 Aug 2010 03:00:47 -0000 Received: (qmail 15551 invoked by uid 22791); 10 Aug 2010 03:00:47 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL, BAYES_20, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 10 Aug 2010 03:00:43 +0000 Received: (qmail 20545 invoked from network); 10 Aug 2010 03:00:41 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Aug 2010 03:00:41 -0000 Date: Mon, 9 Aug 2010 20:00:41 -0700 From: Nathan Froyd To: gcc-patches@gcc.gnu.org Subject: [obv] free VEC in ipa-split.c:find_split_points Message-ID: <20100810030038.GN4130@codesourcery.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org We weren't freeing the DFS stack in find_split_points. Tested on x86_64-unknown-linux-gnu. Committed as obvious. -Nathan * ipa-split.c (find_split_points): Free stack. Index: ipa-split.c =================================================================== --- ipa-split.c (revision 163046) +++ ipa-split.c (working copy) @@ -903,6 +903,7 @@ find_split_points (int overall_time, int ENTRY_BLOCK_PTR->aux = NULL; FOR_EACH_BB (bb) bb->aux = NULL; + VEC_free (stack_entry, heap, stack); BITMAP_FREE (current.ssa_names_to_pass); }