aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-pa64.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-pa64.c')
-rw-r--r--gdb/solib-pa64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-pa64.c b/gdb/solib-pa64.c
index b55b67c..5e1f730 100644
--- a/gdb/solib-pa64.c
+++ b/gdb/solib-pa64.c
@@ -362,7 +362,8 @@ manpage for methods to privately map shared library text."));
to find any magic formula to find it for Solaris (appears to
be trivial on GNU/Linux). Therefore, we have to try an alternate
mechanism to find the dynamic linker's base address. */
- tmp_bfd = gdb_bfd_ref (bfd_openr (buf, gnutarget));
+ tmp_bfd = bfd_openr (buf, gnutarget);
+ gdb_bfd_ref (tmp_bfd);
if (tmp_bfd == NULL)
return;