Fix coff_start_symtab resource leak found by Coverity
authorGary Benson <gbenson@redhat.com>
Fri, 1 Mar 2019 13:50:27 +0000 (13:50 +0000)
committerGary Benson <gbenson@redhat.com>
Fri, 1 Mar 2019 13:50:27 +0000 (13:50 +0000)
commit827f438f664809b13ea59e8fabc43070dbd17645
treec2cda8b18698a1c01b033c551ad7dd5e6a07ab6a
parent4ffd290906608e72fd98d627a24aa2c2b6ecf4ce
Fix coff_start_symtab resource leak found by Coverity

This commit fixes a resource leak found by Coverity, where
coff_start_symtab performs an xstrdup that is now performed
within start_symtab by buildsym_compunit::buildsym_compunit.

gdb/ChangeLog:

* coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
gdb/ChangeLog
gdb/coffread.c