This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Free results of varobj_get_type and type_to_string
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 30 Jan 2015 13:55:33 -0500
- Subject: Re: [PATCH] Free results of varobj_get_type and type_to_string
- Authentication-results: sourceware.org; auth=none
- References: <1422383618-8215-1-git-send-email-simon dot marchi at ericsson dot com> <20150129051126 dot GD5193 at adacore dot com> <54CA58D3 dot 2000201 at ericsson dot com> <20150130090321 dot GP5193 at adacore dot com>
On 15-01-30 04:03 AM, Joel Brobecker wrote:
>>>> gdb/ChangeLog:
>>>>
>>>> * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
>>>> varobj_get_type.
>>>> (varobj_update_one): Same.
>>>> * varobj.c (update_type_if_necessary): Free curr_type_str and
>>>> new_type_str.
>>>> (varobj_get_type): Specify in comment that the result needs to be
>>>> freed by the caller.
>
> Thank you. This looks good to me, so go ahead and push!
Pushed, thanks!