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] Fix memory leak in cp-support.c (cp_canonicalize_string)


On 08/09/2017 02:41 PM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
> Patch is good to me.
> 
>> -	      n = cp_comp_to_string (&newobj, 100);
>> +	      gdb::unique_xmalloc_ptr<char> n = cp_comp_to_string (&newobj, 100);
> 
> Nit, it is too long.

Fixed and pushed, thanks.

Pedro Alves


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