summaryrefslogtreecommitdiff
path: root/src/builtins/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins/file.c')
-rw-r--r--src/builtins/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builtins/file.c b/src/builtins/file.c
index a46b0a6..f08f67f 100644
--- a/src/builtins/file.c
+++ b/src/builtins/file.c
@@ -87,7 +87,7 @@ BuiltinClose (BufFilePtr f, int unused)
{
BuiltinIOPtr io = ((BuiltinIOPtr) f->private);
- xfree (io);
+ free (io);
return 1;
}
@@ -105,7 +105,7 @@ BuiltinFileOpen (char *name)
break;
if (i == builtin_files_count)
return NULL;
- io = (BuiltinIOPtr) xalloc (sizeof (BuiltinIORec));
+ io = malloc (sizeof (BuiltinIORec));
if (!io)
return NULL;
io->offset = 0;
@@ -113,7 +113,7 @@ BuiltinFileOpen (char *name)
raw = BufFileCreate ((char *) io, BuiltinFill, 0, BuiltinSkip, BuiltinClose);
if (!raw)
{
- xfree (io);
+ free (io);
return NULL;
}
if ((cooked = BufFilePushZIP (raw)))