summaryrefslogtreecommitdiff
path: root/gdb/ui-out.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
commit7fd5097f9fb26871e9f0b329f1cf5554495ed589 (patch)
tree20b4de6e7953169d2402aff4e158b475b5726e67 /gdb/ui-out.c
parenteac388f33554805a5765a2836926311f77cd8d79 (diff)
downloadgdb-7fd5097f9fb26871e9f0b329f1cf5554495ed589.tar.gz
Replace free() with xfree().
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index a95831da28e..79533267edc 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -235,7 +235,7 @@ ui_out_table_end (struct ui_out *uiout)
uo_table_end (uiout);
if (uiout->table_id)
- free (uiout->table_id);
+ xfree (uiout->table_id);
clear_header_list (uiout);
}
@@ -315,7 +315,7 @@ ui_out_field_stream (struct ui_out *uiout, char *fldname, struct ui_stream *buf)
{
long length;
char *buffer = ui_file_xstrdup (buf->stream, &length);
- struct cleanup *old_cleanup = make_cleanup (free, buffer);
+ struct cleanup *old_cleanup = make_cleanup (xfree, buffer);
if (length > 0)
ui_out_field_string (uiout, fldname, buffer);
else
@@ -425,7 +425,7 @@ void
ui_out_stream_delete (struct ui_stream *buf)
{
ui_file_delete (buf->stream);
- free (buf);
+ xfree (buf);
}
static void
@@ -770,8 +770,8 @@ clear_header_list (struct ui_out *uiout)
uiout->headercurr = uiout->headerfirst;
uiout->headerfirst = uiout->headerfirst->next;
if (uiout->headercurr->colhdr != NULL)
- free (uiout->headercurr->colhdr);
- free (uiout->headercurr);
+ xfree (uiout->headercurr->colhdr);
+ xfree (uiout->headercurr);
}
uiout->headerlast = NULL;
uiout->headercurr = NULL;