2000-12-20 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / gdb / umax-xdep.c
index 75e088ce967231b6bc8eb984a4424c7e1b32ebca..84431fe47a52238ac80849752eed3654fba375e9 100644 (file)
@@ -40,9 +40,7 @@
    This code would be in corefile.c if it weren't machine-dependent. */
 
 void
-core_file_command (filename, from_tty)
-     char *filename;
-     int from_tty;
+core_file_command (char *filename, int from_tty)
 {
   int val;
 
@@ -50,7 +48,7 @@ core_file_command (filename, from_tty)
      and mark data and stack spaces as empty.  */
 
   if (corefile)
-    free (corefile);
+    xfree (corefile);
   corefile = 0;
 
   if (corechan >= 0)
@@ -67,7 +65,7 @@ core_file_command (filename, from_tty)
   if (filename)
     {
       filename = tilde_expand (filename);
-      make_cleanup (free, filename);
+      make_cleanup (xfree, filename);
 
       if (have_inferior_p ())
        error ("To look at a core file, you must kill the program with \"kill\".");
This page took 0.02517 seconds and 4 git commands to generate.