aboutsummaryrefslogtreecommitdiffstats
path: root/anysum.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--anysum.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/anysum.c b/anysum.c
index de85e46..09ada8d 100644
--- a/anysum.c
+++ b/anysum.c
@@ -83,11 +83,12 @@ main(int argc, char **argv)
struct config config = {.format = LOWERCASE_HEX | WITH_FILENAME | WITH_LF};
char stdin_str[] = "-";
char *stdin_array[] = {stdin_str, NULL};
+ char *algostrbuf = NULL;
size_t i;
int ret;
libsimple_default_failure_exit = 2;
- cmdline(&argc, &argv, &config);
+ cmdline(&argc, &argv, &config, &algostrbuf);
if (!*argv)
argv = stdin_array;
@@ -114,5 +115,6 @@ main(int argc, char **argv)
for (i = 0; i < config.nalgorithms; i++)
free(config.algorithms[i].result);
free(config.algorithms);
+ free(algostrbuf);
return ret;
}