From 53ade56b4ebb1b9e0010d4f6cf4bed7ac887fdd7 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 9 May 2019 23:05:33 +1000 Subject: [PATCH] [common] fix option parser memory leak --- VERSION | 2 +- common/src/option.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e940df60..cc09b5a1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-167-g558ae5dc45+1 \ No newline at end of file +a12-168-g5677117c0d+1 \ No newline at end of file diff --git a/common/src/option.c b/common/src/option.c index 9a266db2..733dafe2 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -196,6 +196,8 @@ bool option_parse(int argc, char * argv[]) break; } + free(arg); + if (o->validator) if (!o->validator(&o->value)) {