1
0
mirror of https://github.com/hsoft/collapseos.git synced 2025-04-02 11:38:40 +11:00

Close files when done reading them

This commit is contained in:
Zac Stewart 2020-06-08 19:28:56 -04:00
parent 5402136e62
commit 979412ba73

View File

@ -61,6 +61,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "blk %s has more than 16 lines\n", ep->d_name);
}
free(line);
fclose(fp);
}
fwrite(buf, 1024, blkcnt, stdout);
free(buf);