aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index 8a7da9d..6381e63 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -227,7 +227,7 @@ exec_file_attach (args, from_tty)
same malloc'd string. However exec_close() will attempt to free it
via the exec_bfd->name pointer, so we need to make another copy and
leave exec_bfd as the new owner of the original copy. */
- scratch_pathname = strdup (scratch_pathname);
+ scratch_pathname = xstrdup (scratch_pathname);
make_cleanup (free, scratch_pathname);
if (!bfd_check_format (exec_bfd, bfd_object))