diff --git a/Source/Common/FileFormatCheck.cpp b/Source/Common/FileFormatCheck.cpp index 4b921efe03..6f81772cc4 100644 --- a/Source/Common/FileFormatCheck.cpp +++ b/Source/Common/FileFormatCheck.cpp @@ -74,6 +74,8 @@ namespace FEX::FormatCheck { return false; } + close(fd); + return Header.Magic == COOKIE_MAGIC_V1; } }