mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +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:
parent
9b9966104b
commit
d0f16d5ece
@ -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>
|
||||
|
||||
* 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);
|
||||
if (contents == NULL)
|
||||
goto error_return;
|
||||
return FALSE; /* Bail out and fail. */
|
||||
bfd_elf_set_obj_attr_contents (abfd, contents, attr_size);
|
||||
bfd_set_section_contents (abfd, attr_section, contents, 0, attr_size);
|
||||
free (contents);
|
||||
|
Loading…
Reference in New Issue
Block a user