aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/argparser.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 626bf03..274091e 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -272,6 +272,18 @@ extern void args_dispose()
free(args_freequeue);
args_freequeue = null;
}
+
+ if (args_optmap.keys != null)
+ free(args_map_free(&args_optmap));
+
+ if (args_opts.keys != null)
+ {
+ void** freethis = args_map_free(&args_opts);
+ long i;
+ while (*(freethis + i))
+ free(*(freethis + i++));
+ free(freethis);
+ }
}