aboutsummaryrefslogtreecommitdiff
path: root/toys/tail.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/tail.c')
-rw-r--r--toys/tail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/tail.c b/toys/tail.c
index a029eca9..8783d6ba 100644
--- a/toys/tail.c
+++ b/toys/tail.c
@@ -130,7 +130,7 @@ static int try_lseek(int fd, long bytes, long lines)
}
// Output stored data
- llist_free(list, dump_chunk);
+ llist_traverse(list, dump_chunk);
// In case of -f
lseek(fd, bytes, SEEK_SET);
@@ -201,7 +201,7 @@ static void do_tail(int fd, char *name)
}
// Output/free the buffer.
- llist_free(list, dump_chunk);
+ llist_traverse(list, dump_chunk);
// Measuring from the beginning of the file.
} else for (;;) {