Memory leak in dwarf2.c
authorAlan Modra <amodra@gmail.com>
Mon, 2 Sep 2019 00:24:55 +0000 (09:54 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 2 Sep 2019 00:38:17 +0000 (10:08 +0930)
commit22b31fea07587034636251ccb81041e4e8e0bd93
tree5485ca7806b23b07d21790842f821eadae1f8067
parent579e12e52d00929ed3cf9e801fbc97d4594a1ecf
Memory leak in dwarf2.c

This fixes a small leak of debug_filename.  bfd_openr copies the file
name since git commit 1be5090bca.

PR 11983
* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename
on success.  Tidy.
bfd/ChangeLog
bfd/dwarf2.c