Skip to content

Commit 078a78f

Browse files
committed
Close ce7bin after opening and reading
1 parent e184431 commit 078a78f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

retail/arm9/source/conf_sd.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ int loadFromSD(configuration* conf, const char *bootstrapPath) {
291291
// Load ce7 binary
292292
FILE* ce7bin = fopen("nitro:/cardengine_arm7.bin", "rb");
293293
fread((void*)0x027E0000, 1, 0x10000, ce7bin);
294+
fclose(ce7bin);
294295

295296
if (conf->loadingScreen == 5) {
296297
FILE* loadingScreenImage;

0 commit comments

Comments
 (0)