* All function that call function find_function_in_inferior have memory leak?
@ 2009-03-03 9:15 teawater
2009-03-03 9:30 ` teawater
0 siblings, 1 reply; 2+ messages in thread
From: teawater @ 2009-03-03 9:15 UTC (permalink / raw)
To: gdb ml
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: All function that call function find_function_in_inferior have memory leak?
2009-03-03 9:15 All function that call function find_function_in_inferior have memory leak? teawater
@ 2009-03-03 9:30 ` teawater
0 siblings, 0 replies; 2+ messages in thread
From: teawater @ 2009-03-03 9:30 UTC (permalink / raw)
To: gdb ml
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-03-03 9:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-03 9:15 All function that call function find_function_in_inferior have memory leak? teawater
2009-03-03 9:30 ` teawater
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox