diff options
author | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-12-07 03:56:43 +0000 |
---|---|---|
committer | Jason Molenda <jsm@bugshack.cygnus.com> | 1999-12-07 03:56:43 +0000 |
commit | ecd8390290ac2bf41f22122ea01924dcd108af34 (patch) | |
tree | fc8310b6f500d05013970d228f2993a81dd6b14b /gdb/exec.c | |
parent | c13f725cbfef435a3cbc607745a9b917a756c101 (diff) | |
download | gdb-ecd8390290ac2bf41f22122ea01924dcd108af34.tar.gz |
import gdb-1999-12-06 snapshot
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 8a7da9df88a..6381e63e358 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)) |