Close the file before the _WIN32 switch

This commit is contained in:
Geoff McLane 2017-05-09 19:24:20 +02:00
parent ce105dcf09
commit f7e7554c95

View file

@ -1077,11 +1077,12 @@ int tidyDocParseFile( TidyDocImpl* doc, ctmbstr filnam )
return status; return status;
} }
fclose( fin );
#ifdef _WIN32 #ifdef _WIN32
return TY_(DocParseFileWithMappedFile)( doc, filnam ); return TY_(DocParseFileWithMappedFile)( doc, filnam );
#else #else
fclose( fin );
fin = fopen( filnam, "rb" ); fin = fopen( filnam, "rb" );
#if PRESERVE_FILE_TIMES #if PRESERVE_FILE_TIMES