Hi, Gdb now asserts on dangling cleanups left in the code, so I've taken the time to audit the gdbtk code to make sure that cleanups are handled correctly. I've committed the attached patch. Keith ChangeLog 2013-06-05 Keith Seitz * generic/gdbtk.c (tk_command): Use xfree instead of free. * generic/gdbtk-hooks.c (gdbtk_call_command): Remove unused cleanup. * generic/gdbtk-cmds.c (gdb_load_info): If bfd_check_format fails, run the cleanup.