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: Joel Brobecker <brobecker at adacore dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 30 Jan 2015 13:03:21 +0400
- 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>
> >> 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!
--
Joel