Skip to content

Commit

Permalink
Merge pull request #3423 from Sonicadvance1/fix_fd_leak
Browse files Browse the repository at this point in the history
FileFormatCheck: Fixes FD leak
  • Loading branch information
lioncash authored Feb 14, 2024
2 parents 9cab746 + 16a5d1a commit 0505b30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Common/FileFormatCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ namespace FEX::FormatCheck {
return false;
}

close(fd);

return Header.Magic == COOKIE_MAGIC_V1;
}
}

0 comments on commit 0505b30

Please sign in to comment.