[common] fix option parser memory leak
This commit is contained in:
1 parent
5677117c0d
commit
53ade56b4e
2 files changed
+3
-1
No files matched your search
@@ -196,6 +196,8 @@ bool option_parse(int argc, char * argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
free(arg);
|
||||
|
||||
if (o->validator)
|
||||
if (!o->validator(&o->value))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user