summaryrefslogtreecommitdiff
path: root/t/helper/test-truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-truncate.c')
-rw-r--r--t/helper/test-truncate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/helper/test-truncate.c b/t/helper/test-truncate.c
index 3931deaec7..2820cc7ed7 100644
--- a/t/helper/test-truncate.c
+++ b/t/helper/test-truncate.c
@@ -21,5 +21,8 @@ int cmd__truncate(int argc, const char **argv)
if (ftruncate(fd, (off_t) sz) < 0)
die_errno("failed to truncate file");
+
+ close(fd);
+
return 0;
}