This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: All function that call function find_function_in_inferior have memory leak?
I miss "free_all_values ();" in "execute_command".
So sorry to disturb you.
Hui
On Tue, Mar 3, 2009 at 17:15, teawater <teawater@gmail.com> wrote:
> Hi guys,
>
> I found that function find_function_in_inferior will alloc a "struct
> value *val" and return it.
> But I can't find any function call value_free to free it.
>
> For example:
> Function scm_inferior_print:
> func = find_function_in_inferior ("gdb_print", &objf);
>
> Function checkpoint_command:
> fork_fn = find_function_in_inferior ("fork", &fork_objf);
>
> Did I miss something or this is a memory leak?
>
> Thanks,
> Hui
>