From 8d1a04e6209d62517ed9bb058a679049c5bf4ae8 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Aug 2013 13:00:12 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/argparser.c b/src/argparser.c index 11be506..07f99a3 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -190,21 +190,15 @@ void args_dispose() args_freequeue = null; } - if (args_optmap.keys != null) - free(map_free(&args_optmap)); - else - free(args_optmap.data); + free(map_free(&args_optmap)); - if (args_opts.keys != null) - { - void** freethis = map_free(&args_opts); - long i = 0; - while (*(freethis + i)) - free(*(freethis + i++)); - free(freethis); - } - else - free(args_opts.data); + { + void** freethis = map_free(&args_opts); + long i = 0; + while (*(freethis + i)) + free(*(freethis + i++)); + free(freethis); + } } -- cgit v1.2.3-70-g09d2