aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/argparser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 07f99a3..7439f81 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -196,7 +196,12 @@ void args_dispose()
void** freethis = map_free(&args_opts);
long i = 0;
while (*(freethis + i))
- free(*(freethis + i++));
+ {
+ args_Array* value = *(freethis + i++);
+ if (value->values != null)
+ free(value->values);
+ free(value);
+ }
free(freethis);
}
}