diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index 1adcb1a7..ad315957 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -188,6 +188,7 @@ static cell AMX_NATIVE_CALL write_file(AMX *amx, cell *params) /* 3 param */ // now rewrite because file can be now smaller... if ( (pFile = fopen(sFile,"w")) == NULL ){ amx_RaiseError(amx,AMX_ERR_NATIVE); + fclose(pTemp); return 0; } diff --git a/amxmodx/msvc/release_win32/amx_mm.dll b/amxmodx/msvc/release_win32/amx_mm.dll index 47888fa7..0a11b023 100755 Binary files a/amxmodx/msvc/release_win32/amx_mm.dll and b/amxmodx/msvc/release_win32/amx_mm.dll differ