coff-alpha memory leak
* coff-alpha.c (alpha_ecoff_read_ar_hdr): Free ar_hdr on error return.
This commit is contained in:
parent
5c787103a2
commit
fcc5d04f92
@ -1,3 +1,7 @@
|
||||
2019-12-20 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* coff-alpha.c (alpha_ecoff_read_ar_hdr): Free ar_hdr on error return.
|
||||
|
||||
2019-12-18 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* coff-rs6000.c (_bfd_xcoff_slurp_armap): Don't overflow when
|
||||
|
@ -2026,7 +2026,10 @@ alpha_ecoff_read_ar_hdr (bfd *abfd)
|
||||
if (bfd_seek (abfd, (file_ptr) FILHSZ, SEEK_CUR) != 0
|
||||
|| bfd_bread (ab, (bfd_size_type) 8, abfd) != 8
|
||||
|| bfd_seek (abfd, (file_ptr) (- (FILHSZ + 8)), SEEK_CUR) != 0)
|
||||
return NULL;
|
||||
{
|
||||
free (ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
ret->parsed_size = H_GET_64 (abfd, ab);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user