diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-12-15 01:01:51 +0000 |
commit | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/corefile.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r-- | gdb/corefile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index 38bef9a27fe..4447f777473 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -91,7 +91,7 @@ core_file_command (char *filename, int from_tty) { char *symfile_copy = xstrdup (symfile); - make_cleanup (free, symfile_copy); + make_cleanup (xfree, symfile_copy); symbol_file_command (symfile_copy, from_tty); } else @@ -183,7 +183,7 @@ reopen_exec_file (void) /* If the timestamp of the exec file has changed, reopen it. */ filename = xstrdup (bfd_get_filename (exec_bfd)); - make_cleanup (free, filename); + make_cleanup (xfree, filename); mtime = bfd_get_mtime (exec_bfd); res = stat (filename, &st); @@ -397,7 +397,7 @@ void set_gnutarget (char *newtarget) { if (gnutarget_string != NULL) - free (gnutarget_string); + xfree (gnutarget_string); gnutarget_string = savestring (newtarget, strlen (newtarget)); set_gnutarget_command (NULL, 0, NULL); } |