aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-file.c
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/ui-file.c
parent6fa957a9b9408297206fb88e7c773931760f0528 (diff)
downloadgdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip
gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz
gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2
Replace free() with xfree().
Diffstat (limited to 'gdb/ui-file.c')
-rw-r--r--gdb/ui-file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ui-file.c b/gdb/ui-file.c
index e91838c..616cc54 100644
--- a/gdb/ui-file.c
+++ b/gdb/ui-file.c
@@ -68,7 +68,7 @@ void
ui_file_delete (struct ui_file *file)
{
file->to_delete (file);
- free (file);
+ xfree (file);
}
static int
@@ -316,8 +316,8 @@ mem_file_delete (struct ui_file *file)
if (stream->magic != &mem_file_magic)
internal_error ("mem_file_delete: bad magic number");
if (stream->buffer != NULL)
- free (stream->buffer);
- free (stream);
+ xfree (stream->buffer);
+ xfree (stream);
}
struct ui_file *
@@ -420,7 +420,7 @@ stdio_file_delete (struct ui_file *file)
{
fclose (stdio->file);
}
- free (stdio);
+ xfree (stdio);
}
static void