aboutsummaryrefslogtreecommitdiff
path: root/bfd/stabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/stabs.c')
-rw-r--r--bfd/stabs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/stabs.c b/bfd/stabs.c
index 0e3d062..81ef1de 100644
--- a/bfd/stabs.c
+++ b/bfd/stabs.c
@@ -494,10 +494,8 @@ _bfd_link_section_stabs (bfd *abfd,
return TRUE;
error_return:
- if (stabbuf != NULL)
- free (stabbuf);
- if (stabstrbuf != NULL)
- free (stabstrbuf);
+ free (stabbuf);
+ free (stabstrbuf);
return FALSE;
}
@@ -648,8 +646,7 @@ _bfd_discard_section_stabs (bfd *abfd,
return skip > 0;
error_return:
- if (stabbuf != NULL)
- free (stabbuf);
+ free (stabbuf);
return FALSE;
}