diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-04-12 10:37:55 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-04-12 10:37:55 (GMT) |
commit | 8f49666cbc5486693b84f210a1af6b71fff1133e (patch) | |
tree | 639ebf33cf40ba90a63f139b55eaeccefd73bb42 | |
parent | 8a610004f6ac5bf5966b8a16da5a240d289b538b (diff) | |
download | lz4-8f49666cbc5486693b84f210a1af6b71fff1133e.zip lz4-8f49666cbc5486693b84f210a1af6b71fff1133e.tar.gz lz4-8f49666cbc5486693b84f210a1af6b71fff1133e.tar.bz2 |
Fixed : minor coverity warning
-rw-r--r-- | programs/fullbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/fullbench.c b/programs/fullbench.c index 40d95e5..658c365 100644 --- a/programs/fullbench.c +++ b/programs/fullbench.c @@ -569,9 +569,9 @@ int fullSpeedBench(char** fileNamesTable, int nbFiles) /* Memory size adjustments */ inFileSize = BMK_GetFileSize(inFileName); - if (inFileSize==0) { DISPLAY( "file is empty\n"); CLEANEXIT(11); } + if (inFileSize==0) { DISPLAY( "file is empty\n"); fclose(inFile); CLEANEXIT(11); } benchedSize = (size_t) BMK_findMaxMem(inFileSize*2) / 2; /* because 2 buffers */ - if (benchedSize==0) { DISPLAY( "not enough memory\n"); CLEANEXIT(11); } + if (benchedSize==0) { DISPLAY( "not enough memory\n"); fclose(inFile); CLEANEXIT(11); } if ((U64)benchedSize > inFileSize) benchedSize = (size_t)inFileSize; if (benchedSize < inFileSize) DISPLAY("Not enough memory for '%s' full size; testing %i MB only...\n", inFileName, (int)(benchedSize>>20)); |