* exec.c (xfer_memory): Add attrib argument.
[deliverable/binutils-gdb.git] / gdb / completer.c
index bd23ca807dec7caf183a4b59695142bf08c2e3c5..9a665b644ebdb326ce8a7f5c9ed71a8881a78a76 100644 (file)
@@ -139,7 +139,7 @@ extern char *filename_completion_function (char *, int);
            q = xmalloc (strlen (p) + 5);
            strcpy (q, p + (word - text));
            return_val[return_val_used++] = q;
-           free (p);
+           xfree (p);
          }
        else
          {
@@ -149,7 +149,7 @@ extern char *filename_completion_function (char *, int);
            q[text - word] = '\0';
            strcat (q, p);
            return_val[return_val_used++] = q;
-           free (p);
+           xfree (p);
          }
       }
     }
@@ -228,7 +228,7 @@ line_completion_function (char *text, int matches, char *line_buffer, int point)
        {
          /* Free the storage used by LIST, but not by the strings inside.
             This is because rl_complete_internal () frees the strings. */
-         free ((PTR) list);
+         xfree (list);
        }
       list = 0;
       index = 0;
This page took 0.023844 seconds and 4 git commands to generate.