This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 12/40] fix cleanup handling in m32r_load
- From: Tom Tromey <tromey at redhat dot com>
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 09 May 2013 12:51:08 -0600
- Subject: [PATCH 12/40] fix cleanup handling in m32r_load
- References: <cover dot 1368124285 dot git dot tromey at redhat dot com>
m32r_load is missing a call to do_cleanups along one return path.
* m32r-rom.c (m32r_load): Call do_cleanups at all returns.
---
gdb/m32r-rom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/m32r-rom.c b/gdb/m32r-rom.c
index aab59f0..5b27b60 100644
--- a/gdb/m32r-rom.c
+++ b/gdb/m32r-rom.c
@@ -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
--
1.8.1.4