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.
+2019-01-10 Pedro Alves <palves@redhat.com>
+
+ * solib-target.c (library_list_start_library): Don't xstrdup name.
+
2019-01-10 Pedro Alves <palves@redhat.com>
* mdebugread.c (parse_partial_symbols): Use
{
VEC(lm_info_target_p) **list = (VEC(lm_info_target_p) **) user_data;
lm_info_target *item = new lm_info_target;
- const char *name
+ item->name
= (const char *) xml_find_attribute (attributes, "name")->value.get ();
- item->name = xstrdup (name);
VEC_safe_push (lm_info_target_p, *list, item);
}