diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-11-15 03:07:55 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-11-15 03:07:55 +0100 |
| commit | ce494ffbda3414f85be58d4354c2cd6381679249 (patch) | |
| tree | e15fa884c84d86dbe0f0fd3c7d7265048fb43d59 | |
| parent | select last value of the options (diff) | |
| download | sha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.gz sha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.bz2 sha3sum-ce494ffbda3414f85be58d4354c2cd6381679249.tar.xz | |
memory leak on --help
Signed-off-by: Mattias Andrée <maandree@operamail.com>
| -rw-r--r-- | src/common.c | 2 |
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")); |
