mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-24 01:51:54 +08:00
2007-07-24 Michael Snyder <msnyder@access-company.com>
* elflink.c (bfd_elf_final_link): Avoid redundant frees -- return on bfd_malloc error rather than goto error_return.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2007-07-24 Michael Snyder <msnyder@access-company.com>
|
||||||
|
|
||||||
|
* elflink.c (bfd_elf_final_link): Avoid redundant frees -- return
|
||||||
|
on bfd_malloc error rather than goto error_return.
|
||||||
|
|
||||||
2007-07-24 Alan Modra <amodra@bigpond.net.au>
|
2007-07-24 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
|
* elflink.c (_bfd_elf_link_just_syms, merge_sections_remove_hook,
|
||||||
|
@ -11043,7 +11043,7 @@ bfd_elf_final_link (bfd *abfd, struct bfd_link_info *info)
|
|||||||
{
|
{
|
||||||
bfd_byte *contents = bfd_malloc (attr_size);
|
bfd_byte *contents = bfd_malloc (attr_size);
|
||||||
if (contents == NULL)
|
if (contents == NULL)
|
||||||
goto error_return;
|
return FALSE; /* Bail out and fail. */
|
||||||
bfd_elf_set_obj_attr_contents (abfd, contents, attr_size);
|
bfd_elf_set_obj_attr_contents (abfd, contents, attr_size);
|
||||||
bfd_set_section_contents (abfd, attr_section, contents, 0, attr_size);
|
bfd_set_section_contents (abfd, attr_section, contents, 0, attr_size);
|
||||||
free (contents);
|
free (contents);
|
||||||
|
Reference in New Issue
Block a user