aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
committerKevin Buettner <kevinb@redhat.com>2000-12-15 01:01:51 +0000
commitb8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch)
tree1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/completer.c
parent2000-12-14 Kazu Hirata <kazu@hxi.com> (diff)
downloadbinutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2
binutils-gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
Replace free() with xfree().
Diffstat (limited to 'gdb/completer.c')
-rw-r--r--gdb/completer.c6
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;