bfd/elf.c strtab memory leak
* elf.c (_bfd_elf_compute_section_file_positions): Free strtab on set_group_contents failure return path.
This commit is contained in:
parent
f5c0d77088
commit
c7e6669a5b
1 changed files with 5 additions and 1 deletions
|
@ -4254,7 +4254,11 @@ _bfd_elf_compute_section_file_positions (bfd *abfd,
|
|||
{
|
||||
bfd_map_over_sections (abfd, bfd_elf_set_group_contents, &failed);
|
||||
if (failed)
|
||||
return false;
|
||||
{
|
||||
if (need_symtab)
|
||||
_bfd_elf_strtab_free (strtab);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
shstrtab_hdr = &elf_tdata (abfd)->shstrtab_hdr;
|
||||
|
|
Loading…
Add table
Reference in a new issue