This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix some memory leaks in libunwind unwinder


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]