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 | 7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch) | |
tree | 20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/completer.c | |
parent | eac388f33554805a5765a2836926311f77cd8d79 (diff) | |
download | gdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz |
Replace free() with xfree().
Diffstat (limited to 'gdb/completer.c')
-rw-r--r-- | gdb/completer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/completer.c b/gdb/completer.c index bd23ca807de..9a665b644eb 100644 --- a/gdb/completer.c +++ b/gdb/completer.c @@ -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; |