mirror of
https://github.com/libretro/pcsx2.git
synced 2025-01-13 04:50:46 +00:00
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…
x
Reference in New Issue
Block a user