Replace free() with xfree().
This commit is contained in:
parent
6fa957a9b9
commit
b8c9b27d1e
128 changed files with 545 additions and 532 deletions
|
@ -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 *
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1378,7 +1378,7 @@ freeWindow (winInfo)
|
|||
winInfo->generic.handle = (WINDOW *) NULL;
|
||||
freeWinContent (&winInfo->generic);
|
||||
}
|
||||
free (winInfo);
|
||||
xfree (winInfo);
|
||||
|
||||
return;
|
||||
} /* freeWindow */
|
||||
|
|
|
@ -603,7 +603,7 @@ _tuiSetLayoutTo (layoutName)
|
|||
newLayout = _prevLayout ();
|
||||
else
|
||||
status = TUI_FAILURE;
|
||||
free (bufPtr);
|
||||
xfree (bufPtr);
|
||||
|
||||
tuiSetLayout (newLayout, dpyType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue