import gdb-1999-12-06 snapshot
[deliverable/binutils-gdb.git] / gdb / exec.c
index 8a7da9df88ad6bf4821696ab781b642a08981d66..6381e63e358b3ee7d0d40039c99ebd1f867cbc2f 100644 (file)
@@ -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))
This page took 0.022801 seconds and 4 git commands to generate.