projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas/hash.c: add new functions
[binutils-gdb.git]
/
bfd
/
ecofflink.c
diff --git
a/bfd/ecofflink.c
b/bfd/ecofflink.c
index ba2bbbc868a78e095025725cc297e9c4df662d6d..e7b35f670db2900240c5df8da2e6f0aff4230d49 100644
(file)
--- a/
bfd/ecofflink.c
+++ b/
bfd/ecofflink.c
@@
-1112,7
+1112,7
@@
bfd_ecoff_debug_accumulate_other (void * handle,
fdr.issBase = output_symhdr->issMax;
fdr.cbSs = 0;
fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
fdr.issBase = output_symhdr->issMax;
fdr.cbSs = 0;
fdr.rss = ecoff_add_string (ainfo, info, output_debug, &fdr,
-
input_bfd->filename
);
+
bfd_get_filename (input_bfd)
);
if (fdr.rss == -1)
return FALSE;
fdr.isymBase = output_symhdr->isymMax;
if (fdr.rss == -1)
return FALSE;
fdr.isymBase = output_symhdr->isymMax;
@@
-1464,12
+1464,10
@@
ecoff_write_symhdr (bfd *abfd,
!= swap->external_hdr_size)
goto error_return;
!= swap->external_hdr_size)
goto error_return;
- if (buff != NULL)
- free (buff);
+ free (buff);
return TRUE;
error_return:
return TRUE;
error_return:
- if (buff != NULL)
- free (buff);
+ free (buff);
return FALSE;
}
return FALSE;
}
@@
-1685,13
+1683,11
@@
bfd_ecoff_write_accumulated_debug (void * handle,
if (bfd_bwrite (debug->external_ext, amt, abfd) != amt)
goto error_return;
if (bfd_bwrite (debug->external_ext, amt, abfd) != amt)
goto error_return;
- if (space != NULL)
- free (space);
+ free (space);
return TRUE;
error_return:
return TRUE;
error_return:
- if (space != NULL)
- free (space);
+ free (space);
return FALSE;
}
\f
return FALSE;
}
\f
@@
-2320,12
+2316,11
@@
lookup_line (bfd *abfd,
if (len != 0)
{
if (len != 0)
{
- if (line_info->find_buffer != NULL)
- free (line_info->find_buffer);
+ free (line_info->find_buffer);
buffer = (char *) bfd_malloc ((bfd_size_type) len);
buffer = (char *) bfd_malloc ((bfd_size_type) len);
+ line_info->find_buffer = buffer;
if (buffer == NULL)
return FALSE;
if (buffer == NULL)
return FALSE;
- line_info->find_buffer = buffer;
}
if (function_name != NULL)
}
if (function_name != NULL)