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 | b8c9b27d1e133d46199734ca1f047af8bb2d3314 (patch) | |
tree | 1aa002791f0e97bfc48c64222199e6d9f9e5eb53 /gdb/ui-out.c | |
parent | 6fa957a9b9408297206fb88e7c773931760f0528 (diff) | |
download | gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.zip gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.gz gdb-b8c9b27d1e133d46199734ca1f047af8bb2d3314.tar.bz2 |
Replace free() with xfree().
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index a95831d..7953326 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; |