From ce494ffbda3414f85be58d4354c2cd6381679249 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Nov 2014 03:07:55 +0100 Subject: memory leak on --help MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- cgit v1.2.3-70-g09d2