diff options
Diffstat (limited to 'gdb/dsrec.c')
-rw-r--r-- | gdb/dsrec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dsrec.c b/gdb/dsrec.c index 66d4c13..8cca361 100644 --- a/gdb/dsrec.c +++ b/gdb/dsrec.c @@ -61,7 +61,8 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, srec = (char *) alloca (maxrecsize + 1); - abfd = gdb_bfd_ref (bfd_openr (file, 0)); + abfd = bfd_openr (file, 0); + gdb_bfd_ref (abfd); if (!abfd) { printf_filtered (_("Unable to open file %s\n"), file); |