Added missing fclose to dir_read() in filesystem.c

This commit is contained in:
rxi
2016-10-12 19:41:32 +01:00
parent e1e8581f0b
commit 7d6134705e

View File

@@ -157,6 +157,8 @@ static void* dir_read(Mount *mnt, const char *filename, int *size) {
return NULL;
}
fread(p, 1, *size, fp);
/* Close file and return data */
fclose(fp);
return p;
}