summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/truncate/truncate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/truncate/truncate.c b/usr.bin/truncate/truncate.c
index 0b6fef4..86c92f4 100644
--- a/usr.bin/truncate/truncate.c
+++ b/usr.bin/truncate/truncate.c
@@ -135,6 +135,8 @@ main(int argc, char **argv)
error++;
continue;
}
+
+ close(fd);
}
return error ? EXIT_FAILURE : EXIT_SUCCESS;
OpenPOWER on IntegriCloud