mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #164 from moshekaplan/patch-1
Avoid leaking `romdir` file handle
This commit is contained in:
commit
bfa2bbef85
|
@ -38,6 +38,8 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
extinfo = fopen("EXTINFO", "wb");
|
||||
if (extinfo == NULL) {
|
||||
/* Don't leak the opened romdir */
|
||||
fclose(romdir);
|
||||
printf("failed to create EXTINFO\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue