This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/6] Free results of varobj_get_expression
- 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:57:11 -0500
- Subject: Re: [PATCH 1/6] Free results of varobj_get_expression
- Authentication-results: sourceware.org; auth=none
- References: <1422559716-5480-1-git-send-email-simon dot marchi at ericsson dot com> <20150130031258 dot GJ5193 at adacore dot com>
On 15-01-29 10:12 PM, Joel Brobecker wrote:
> On Thu, Jan 29, 2015 at 02:28:31PM -0500, Simon Marchi wrote:
>> varobj_get_expression returns an allocated string, which must be freed
>> by the caller.
>>
>> gdb/ChangeLog:
>>
>> * mi-cmd-var.c (print_varobj): Free varobj_get_expression
>> result.
>> (mi_cmd_var_info_expression): Same.
>> * varobj.c (varobj_get_expression): Mention in the comment that
>> the result must by freed by the caller.
>
> OK!
>
> Thank you,
Pushed, thanks!