This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix some memory leaks in libunwind unwinder
- From: Daniel Jacobowitz <drow at false dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 6 Jun 2007 15:07:42 -0400
- Subject: Re: Fix some memory leaks in libunwind unwinder
- References: <jer6oo9alq.fsf@sykes.suse.de>
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 <schwab@suse.de>
>
> * 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