summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils')
-rw-r--r--text-utils/tailf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/text-utils/tailf.c b/text-utils/tailf.c
index 12dca2934..f4616ccb8 100644
--- a/text-utils/tailf.c
+++ b/text-utils/tailf.c
@@ -77,6 +77,8 @@ static void tailf(const char *filename, int lines)
for (i = 0; i < lines; i++) free(buffer[i]);
free(buffer);
+
+ fclose(str);
}
int main(int argc, char **argv)