Replace free() with xfree().
This commit is contained in:
parent
6fa957a9b9
commit
b8c9b27d1e
128 changed files with 545 additions and 532 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue