aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-11-15 03:07:55 +0100
committerMattias Andrée <maandree@operamail.com>2014-11-15 03:07:55 +0100
commitce494ffbda3414f85be58d4354c2cd6381679249 (patch)
treee15fa884c84d86dbe0f0fd3c7d7265048fb43d59 /src
parentselect last value of the options (diff)
downloadsha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.gz
sha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.bz2
sha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.xz
memory leak on --help
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index a021ff6..a9913df 100644
--- a/src/common.c
+++ b/src/common.c
@@ -530,7 +530,7 @@ int run(int argc, char* argv[], libkeccak_generalised_spec_t* restrict gspec, co
args_parse(argc, argv);
- if (args_opts_used("-h")) return args_help(0), 0;
+ if (args_opts_used("-h")) return args_help(0), args_dispose(), 0;
if (args_opts_used("-R")) gspec->bitrate = atol(LAST("-R"));
if (args_opts_used("-C")) gspec->capacity = atol(LAST("-C"));
if (args_opts_used("-N")) gspec->output = atol(LAST("-N"));