Fix leak in solib-target.c:library_list_start_library
authorPedro Alves <palves@redhat.com>
Thu, 10 Jan 2019 17:52:39 +0000 (17:52 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 10 Jan 2019 18:03:41 +0000 (18:03 +0000)
commit2f667667e24357ff54701f3e046820cf08d649cf
tree3ad7eae1701702713630735513d85ecd24e828db
parent36cb72375cc371b786ceaec588ec26f8c55ae2ec
Fix leak in solib-target.c:library_list_start_library

lm_info_target::name is nowadays std::string, so we're leaking the
result of xstrdup.

gdb/ChangeLog:
2019-01-10  Pedro Alves  <palves@redhat.com>

* solib-target.c (library_list_start_library): Don't xstrdup name.
gdb/ChangeLog
gdb/solib-target.c