This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
All function that call function find_function_in_inferior have memory leak?
- From: teawater <teawater at gmail dot com>
- To: gdb ml <gdb at sourceware dot org>
- Date: Tue, 3 Mar 2009 17:15:10 +0800
- Subject: All function that call function find_function_in_inferior have memory leak?
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