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: 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 07:12:58 +0400
- 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>
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,
--
Joel