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: [PATCH] dwarf2read.c, memory leak


msnyder@sonic.net writes:
> 2007-08-04  Michael Snyder  <msnyder@access-company.com>
>
> 	* dwarf2read.c (add_partial_symbol): Memory leak.

This looks fine.

As a matter of taste, is it better to duplicate the 'if
(built_actual_name) xfree (actual_name)' three times or to use 'goto'?


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