diff options
Diffstat (limited to 'gdb/symfile-mem.c')
-rw-r--r-- | gdb/symfile-mem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index 5338bdb..4ce315d 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -101,9 +101,8 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr, if (nbfd == NULL) error (_("Failed to read a valid object file image from memory.")); - gdb_bfd_ref (nbfd); /* Manage the new reference for the duration of this function. */ - gdb_bfd_ref_ptr nbfd_holder (nbfd); + gdb_bfd_ref_ptr nbfd_holder = new_bfd_ref (nbfd); xfree (bfd_get_filename (nbfd)); if (name == NULL) |