From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21549 invoked by alias); 6 Jun 2007 19:07:49 -0000 Received: (qmail 21540 invoked by uid 22791); 6 Jun 2007 19:07:49 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Jun 2007 19:07:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CB762982E4; Wed, 6 Jun 2007 19:07:44 +0000 (GMT) Received: from caradoc.them.org (dsl093-172-095.pit1.dsl.speakeasy.net [66.93.172.95]) by nan.false.org (Postfix) with ESMTP id 22758982CF; Wed, 6 Jun 2007 19:07:43 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1Hw0r8-0006OL-Br; Wed, 06 Jun 2007 15:07:42 -0400 Date: Wed, 06 Jun 2007 19:07:00 -0000 From: Daniel Jacobowitz To: Andreas Schwab Cc: gdb-patches@sourceware.org Subject: Re: Fix some memory leaks in libunwind unwinder Message-ID: <20070606190742.GA24553@caradoc.them.org> Mail-Followup-To: Andreas Schwab , gdb-patches@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00073.txt.bz2 On Wed, Jun 06, 2007 at 08:55:13PM +0200, Andreas Schwab wrote: > This is a partial patch to fix the memory leaks in the libunwind > unwinder. Fixing it completely requires some framework changes, but > this is already a big step forward. > > Andreas. > > 2007-06-06 Andreas Schwab > > * libunwind-frame.c (unw_destroy_addr_space_p): Define. > (destroy_addr_space_name): Define. > (libunwind_load): Get address of destroy_addr_space function. > (libunwind_frame_cache): Destroy unw_addr_space_t object before > returning unsuccessfully. > (libunwind_frame_sniffer): Destroy unw_addr_space_t object before > returning. > (libunwind_sigtramp_frame_sniffer): Likewise. > (libunwind_get_reg_special): Likewise. > OK, thanks. -- Daniel Jacobowitz CodeSourcery