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:
parent
5402136e62
commit
979412ba73
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user