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] Free results of varobj_get_type and type_to_string


> >> 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


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