diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 6ba92d9..b2a1d8b 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -752,7 +752,8 @@ windows_make_so (const char *name, LPVOID load_addr) asection *text = NULL; CORE_ADDR text_vma; - abfd = gdb_bfd_ref (bfd_openr (so->so_name, "pei-i386")); + abfd = bfd_openr (so->so_name, "pei-i386"); + gdb_bfd_ref (abfd); if (!abfd) return so; |