summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkfs.c b/mkfs.c
index fbf83196..56c1d9bb 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1362,7 +1362,8 @@ int main(int ac, char **av)
root = open_ctree(file, 0, O_RDWR);
if (!root) {
- fprintf(stderr, "ctree init failed\n");
+ fprintf(stderr, "Open ctree failed\n");
+ close(fd);
exit(1);
}
root->fs_info->alloc_start = alloc_start;