[committed, PATCH] Free memory returned from bfd_get_synthetic_symtab

Andreas Schwab schwab@linux-m68k.org
Mon Sep 25 21:35:00 GMT 2017


On Sep 25 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:

> @@ -1201,6 +1201,8 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
>    else
>      print_size_symbols (abfd, dynamic, symsizes, symcount, archive_bfd);
>  
> +  if (synthsyms)
> +    free (synthsyms);

There is no need to check for NULL.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list