This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/6] Free results of varobj_get_expression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]