This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]