Fix : decompression i/o detects flush write errors

This commit is contained in:
Yann Collet
2015-08-27 03:16:04 +01:00
parent 866a3c3158
commit 5abd8203cb
8 changed files with 21 additions and 17 deletions
+2 -2
View File
@@ -386,9 +386,9 @@ unsigned long long FIO_decompressFilename(const char* output_filename, const cha
/* clean */
free(inBuff);
free(outBuff);
fclose(finput);
fclose(foutput);
ZSTD_freeDCtx(dctx);
fclose(finput);
if (fclose(foutput)) EXM_THROW(38, "Write error : cannot properly close %s", output_filename);
return filesize;
}