fix cleanup handling in m32r_load

m32r_load is missing a call to do_cleanups along one return path.

	* m32r-rom.c (m32r_load): Call do_cleanups at all returns.
This commit is contained in:
Tom Tromey 2013-05-30 17:05:32 +00:00
parent b963592585
commit 4bbc010a2d
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-05-30 Tom Tromey <tromey@redhat.com>
* m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2013-05-30 Tom Tromey <tromey@redhat.com>
* mi/mi-main.c (list_available_thread_groups): Call do_cleanups.

View file

@ -167,6 +167,7 @@ m32r_load (char *filename, int from_tty)
if (!(catch_errors (m32r_load_1, abfd, "Load aborted!\n", RETURN_MASK_ALL)))
{
monitor_printf ("q\n");
do_cleanups (cleanup);
return;
}
#endif