diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argparser.c | 22 |
1 files changed, 8 insertions, 14 deletions
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); + } } |