From 22048e6bb5b40fed72f76b7d9d4fafe329de8f17 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 23 Aug 2013 13:14:28 +0200 Subject: mem lack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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); } } -- cgit v1.2.3-70-g09d2