diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-06-18 21:37:38 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-06-18 21:37:38 +0000 |
commit | d75ea6de3dcd6090e4263f748724c6357d760a9f (patch) | |
tree | 7916963008f7625c102ea2c4287d86f1b86538c9 /gprof/core.c | |
parent | d945323396c4007b984c10d638305e1add9abd6a (diff) | |
download | gdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.zip gdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.tar.gz gdb-d75ea6de3dcd6090e4263f748724c6357d760a9f.tar.bz2 |
* core.c (core_create_line_syms): Use xstrdup rather than strdup.
* source.c (source_file_lookup_path): Likewise.
Diffstat (limited to 'gprof/core.c')
-rw-r--r-- | gprof/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/core.c b/gprof/core.c index 3117599..f2e341c 100644 --- a/gprof/core.c +++ b/gprof/core.c @@ -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; |