mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-09 13:53:58 +00:00
[common] fix option parser memory leak
This commit is contained in:
parent
5677117c0d
commit
53ade56b4e
2 changed files with 3 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
a12-167-g558ae5dc45+1
|
||||
a12-168-g5677117c0d+1
|
|
@ -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 a new issue