diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f7d86202494..da1890a32d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-03-01 Gary Benson + + * coffread.c (coff_start_symtab): Remove unnecessary xstrdup. + 2019-02-28 Brian Vandenberg Rainer Orth diff --git a/gdb/coffread.c b/gdb/coffread.c index 6381cd3f370..91a112e190d 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -385,10 +385,7 @@ coff_start_symtab (struct objfile *objfile, const char *name) { within_function = 0; start_symtab (objfile, - /* We fill in the filename later. start_symtab puts this pointer - into last_source_file and we put it in subfiles->name, which - end_symtab frees; that's why it must be malloc'd. */ - xstrdup (name), + name, /* We never know the directory name for COFF. */ NULL, /* The start address is irrelevant, since we call