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)


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.

-- 
Yao (齐尧)


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