Commit 130a4154 authored by Niels Möller's avatar Niels Möller
Browse files

s/free/lsh_free/

Rev: src/io.c:1.7
parent ab6eba29
...@@ -139,7 +139,7 @@ void io_run(struct io_backend *b) ...@@ -139,7 +139,7 @@ void io_run(struct io_backend *b)
if (!CALLBACK(f->callout)) if (!CALLBACK(f->callout))
fatal("What now?"); fatal("What now?");
b->callouts = f->next; b->callouts = f->next;
free(f); lsh_free(f);
} }
if (res<0) if (res<0)
{ {
...@@ -217,9 +217,9 @@ void io_run(struct io_backend *b) ...@@ -217,9 +217,9 @@ void io_run(struct io_backend *b)
UNLINK_FD; UNLINK_FD;
b->nio--; b->nio--;
if (fd->handler) if (fd->handler)
free(fd->handler); lsh_free(fd->handler);
free(fd->buffer); lsh_free(fd->buffer);
free(fd); lsh_free(fd);
continue; continue;
} }
} }
...@@ -244,7 +244,7 @@ void io_run(struct io_backend *b) ...@@ -244,7 +244,7 @@ void io_run(struct io_backend *b)
{ {
/* FIXME: Should fd be closed here? */ /* FIXME: Should fd be closed here? */
UNLINK_FD; UNLINK_FD;
free(fd); lsh_free(fd);
continue; continue;
} }
} }
...@@ -259,7 +259,7 @@ void io_run(struct io_backend *b) ...@@ -259,7 +259,7 @@ void io_run(struct io_backend *b)
fatal("What now?"); fatal("What now?");
b->nconnect--; b->nconnect--;
UNLINK_FD; UNLINK_FD;
free(fd); lsh_free(fd);
continue; continue;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment