diff --git a/tools/mkcomposefs.c b/tools/mkcomposefs.c index fd0d6645..582862d4 100644 --- a/tools/mkcomposefs.c +++ b/tools/mkcomposefs.c @@ -1606,6 +1606,9 @@ int main(int argc, char **argv) printf("%s\n", digest_str); } + if (out_file && fclose(out_file) == EOF) + err(EXIT_FAILURE, "close output file"); + lcfs_node_unref(root); return 0; }