Merge pull request #5556

82f07c5 Close file before exit to avoid potential resource leak (JesusRami)
release-v0.7.1.0
luigi1111 5 years ago
commit 347d6b268a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -48,6 +48,7 @@ int main(int argc, char *argv[]) {
for (i = 1; i < argc; i++) {
if ((fp = fopen(argv[i], "rb")) == NULL) {
fclose(foutput);
exit(EXIT_FAILURE);
} else {
fprintf(foutput, "static const std::string translation_file_name_%d = \"%s\";\n", i, argv[i]);

Loading…
Cancel
Save