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:
parent
b963592585
commit
4bbc010a2d
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user