From b8c9b27d1e133d46199734ca1f047af8bb2d3314 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Fri, 15 Dec 2000 01:01:51 +0000 Subject: Replace free() with xfree(). --- gdb/completer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/completer.c') diff --git a/gdb/completer.c b/gdb/completer.c index bd23ca8..9a665b6 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; -- cgit v1.1