X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fecofflink.c;h=e7b35f670db2900240c5df8da2e6f0aff4230d49;hb=c95949892f6f1e2974a0fb8a5463d7b6432ac469;hp=dde5593636acd91acc0afb0590160dd282858296;hpb=c31ab5a0010ac9e3d31fd218fffcff1b9696363e;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/ecofflink.c b/bfd/ecofflink.c index dde5593636..e7b35f670d 100644 --- a/bfd/ecofflink.c +++ b/bfd/ecofflink.c @@ -1464,12 +1464,10 @@ ecoff_write_symhdr (bfd *abfd, != swap->external_hdr_size) goto error_return; - if (buff != NULL) - free (buff); + free (buff); return TRUE; error_return: - if (buff != NULL) - free (buff); + free (buff); 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 (space != NULL) - free (space); + free (space); return TRUE; error_return: - if (space != NULL) - free (space); + free (space); return FALSE; } @@ -2320,12 +2316,11 @@ lookup_line (bfd *abfd, 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); + line_info->find_buffer = buffer; if (buffer == NULL) return FALSE; - line_info->find_buffer = buffer; } if (function_name != NULL)