From db2917b1da1fd697bf774ca2e1f4c68247dac3df Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 21 Aug 2013 18:48:03 +0200 Subject: rare case memory leak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/argparser.c b/src/argparser.c index e507986..122aa68 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -192,6 +192,8 @@ void args_dispose() if (args_optmap.keys != null) free(map_free(&args_optmap)); + else + free(args_optmap.data); if (args_opts.keys != null) { @@ -201,6 +203,8 @@ void args_dispose() free(*(freethis + i++)); free(freethis); } + else + free(args_opts.data); } -- cgit v1.2.3-70-g09d2