This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] varobj.c, value_of_root, (another) memory leak
> > I'm not totally sure about this -- does the return value of
> var_get_type
> > need to be freed? If so, there are some other places in mi-cmd-var
> > where it isn't being.
>
> Yes, I think this is right but USE_SELECTED_FRAME is broken anyway. The
> ones in mi-cmd-var.c may be more important. Similar problems seem to
> occur with varobj_get_expression and varobj_get_value.
Committed.