diff options
Diffstat (limited to '')
-rw-r--r-- | anysum.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |