diff options
Diffstat (limited to 'gdb/dsrec.c')
-rw-r--r-- | gdb/dsrec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dsrec.c b/gdb/dsrec.c index 8eefe1e..66d4c13 100644 --- a/gdb/dsrec.c +++ b/gdb/dsrec.c @@ -68,7 +68,7 @@ load_srec (struct serial *desc, const char *file, bfd_vma load_offset, return; } - cleanup = make_cleanup_bfd_close (abfd); + cleanup = make_cleanup_bfd_unref (abfd); if (bfd_check_format (abfd, bfd_object) == 0) { printf_filtered (_("File is not an object file\n")); |