mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-02 04:27:46 +08:00
* defs.h (msavestring, mstrsave): Remove prototypes.
* utils.c (msavestring, mstrsave): Remove functions. * objfiles.c (allocate_objfile): Use xstrdup instead of mstrsave. * solib-sunos.c (allocate_rt_common_objfile): Use xstrdup instead of mstrsave. * source.c (find_and_open_source): Use xstrdup instead of mstrsave.
This commit is contained in:
@ -889,7 +889,7 @@ find_and_open_source (struct objfile *objfile,
|
||||
{
|
||||
char *tmp_fullname;
|
||||
tmp_fullname = *fullname;
|
||||
*fullname = mstrsave (objfile->md, *fullname);
|
||||
*fullname = xstrdup (tmp_fullname);
|
||||
xfree (tmp_fullname);
|
||||
}
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user