Merge pull request #164 from moshekaplan/patch-1

Avoid leaking `romdir` file handle
This commit is contained in:
ramapcsx2 2014-07-29 21:53:17 +02:00
commit bfa2bbef85
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}