mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[common] fix option parser memory leak
This commit is contained in:
parent
5677117c0d
commit
53ade56b4e
@ -196,6 +196,8 @@ bool option_parse(int argc, char * argv[])
|
||||
break;
|
||||
}
|
||||
|
||||
free(arg);
|
||||
|
||||
if (o->validator)
|
||||
if (!o->validator(&o->value))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user