diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-file.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui.c | 4 | ||||
-rw-r--r-- | gdb/tui/tuiData.c | 2 | ||||
-rw-r--r-- | gdb/tui/tuiLayout.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/gdb/tui/tui-file.c b/gdb/tui/tui-file.c index 34591de..bf3574b 100644 --- a/gdb/tui/tui-file.c +++ b/gdb/tui/tui-file.c @@ -89,9 +89,9 @@ tui_file_delete (struct ui_file *file) if ((tmpstream->ts_streamtype == astring) && (tmpstream->ts_strbuf != NULL)) { - free (tmpstream->ts_strbuf); + xfree (tmpstream->ts_strbuf); } - free (tmpstream); + xfree (tmpstream); } struct ui_file * diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 9f83119..b38f67d 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -241,7 +241,7 @@ tuiFree (ptr) { if (ptr != (char *) NULL) { - free (ptr); + xfree (ptr); } return; @@ -626,7 +626,7 @@ strcat_to_buf_with_fmt (va_alist) format = va_arg (args, char *); #endif vasprintf (&linebuffer, format, args); - old_cleanups = make_cleanup (free, linebuffer); + old_cleanups = make_cleanup (xfree, linebuffer); strcat_to_buf (buf, bufLen, linebuffer); do_cleanups (old_cleanups); va_end (args); diff --git a/gdb/tui/tuiData.c b/gdb/tui/tuiData.c index 50fa4a7..d9b7b99 100644 --- a/gdb/tui/tuiData.c +++ b/gdb/tui/tuiData.c @@ -1378,7 +1378,7 @@ freeWindow (winInfo) winInfo->generic.handle = (WINDOW *) NULL; freeWinContent (&winInfo->generic); } - free (winInfo); + xfree (winInfo); return; } /* freeWindow */ diff --git a/gdb/tui/tuiLayout.c b/gdb/tui/tuiLayout.c index f394205..8a6648a 100644 --- a/gdb/tui/tuiLayout.c +++ b/gdb/tui/tuiLayout.c @@ -603,7 +603,7 @@ _tuiSetLayoutTo (layoutName) newLayout = _prevLayout (); else status = TUI_FAILURE; - free (bufPtr); + xfree (bufPtr); tuiSetLayout (newLayout, dpyType); } |