aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_kyradat/pak.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/create_kyradat/pak.cpp')
-rw-r--r--devtools/create_kyradat/pak.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/create_kyradat/pak.cpp b/devtools/create_kyradat/pak.cpp
index 0203285a8f..0d085f563c 100644
--- a/devtools/create_kyradat/pak.cpp
+++ b/devtools/create_kyradat/pak.cpp
@@ -142,6 +142,7 @@ bool PAKFile::outputAllFiles() {
printf("OK\n");
} else {
printf("FAILED\n");
+ fclose(file);
return false;
}
fclose(file);
@@ -168,6 +169,7 @@ bool PAKFile::outputFileAs(const char *f, const char *fn) {
printf("OK\n");
} else {
printf("FAILED\n");
+ fclose(file);
return false;
}
fclose(file);