diff options
Diffstat (limited to 'gdb/remote-m32r-sdi.c')
-rw-r--r-- | gdb/remote-m32r-sdi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c index b4b7324..f0c7cba 100644 --- a/gdb/remote-m32r-sdi.c +++ b/gdb/remote-m32r-sdi.c @@ -1258,7 +1258,8 @@ m32r_load (char *args, int from_tty) if (!filename) filename = get_exec_file (1); - pbfd = gdb_bfd_ref (bfd_openr (filename, gnutarget)); + pbfd = bfd_openr (filename, gnutarget); + gdb_bfd_ref (pbfd); if (pbfd == NULL) { perror_with_name (filename); |