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.

Thanks, committing.

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

I recognize the validity of the question, and invite you
to decide on your own answer.  ;-)




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