mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
This commit is contained in:
@@ -589,7 +589,7 @@ DEFUN (core_create_line_syms, (core_bfd), bfd * core_bfd)
|
||||
}
|
||||
|
||||
/* make name pointer a malloc'ed string: */
|
||||
ltab.limit->name = strdup (ltab.limit->name);
|
||||
ltab.limit->name = xstrdup (ltab.limit->name);
|
||||
ltab.limit->file = source_file_lookup_path (filename);
|
||||
|
||||
ltab.limit->addr = core_text_sect->vma + offset;
|
||||
|
||||
Reference in New Issue
Block a user