This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix memory leak of the demangled symbol name
- From: Tom Tromey <tom at tromey dot com>
- To: "Christian Biesinger via gdb-patches" <gdb-patches at sourceware dot org>
- Cc: Christian Biesinger <cbiesinger at google dot com>
- Date: Thu, 09 Jan 2020 07:49:34 -0700
- Subject: Re: [PATCH] Fix memory leak of the demangled symbol name
- References: <20200108011258.59443-1-cbiesinger@google.com>
>>>>> "Christian" == Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> writes:
Christian> 2020-01-07 Christian Biesinger <cbiesinger@google.com>
Christian> * symtab.c (general_symbol_info::compute_and_set_names): Move the
Christian> unique_xmalloc_ptr outside the if to always free the demangled name.
Thanks, this is ok.
Tom