This is the mail archive of the
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?
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.
func = find_function_in_inferior ("gdb_print", &objf);
fork_fn = find_function_in_inferior ("fork", &fork_objf);
Did I miss something or this is a memory leak?