mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[common] fix option parser memory leak
This commit is contained in:
@@ -196,6 +196,8 @@ bool option_parse(int argc, char * argv[])
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(arg);
|
||||||
|
|
||||||
if (o->validator)
|
if (o->validator)
|
||||||
if (!o->validator(&o->value))
|
if (!o->validator(&o->value))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user