[PATCH] Fix memory leak in cp-support.c (cp_canonicalize_string)

Yao Qi qiyaoltc@gmail.com
Wed Aug 9 13:41:00 GMT 2017


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 (齐尧)



More information about the Gdb-patches mailing list