forked from Imagelibrary/binutils-gdb
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user