summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 888f21e..2870c97 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -470,7 +470,12 @@ int main(int argc, char** argv)
if (!strcmp(input_filename, stdinmark) && IS_CONSOLE(stdin) ) badusage();
/* Check if benchmark is selected */
- if (bench) return BMK_benchFiles(inFileNames, ifnIdx, cLevel);
+ if (bench)
+ {
+ int bmkResult = BMK_benchFiles(inFileNames, ifnIdx, cLevel);
+ free(inFileNames);
+ return bmkResult;
+ }
/* No output filename ==> try to select one automatically (when possible) */
while (!output_filename)