Fix insignificant memory leak.
This commit is contained in:
parent
e8214430ab
commit
bff56be25a
@ -56,7 +56,6 @@ char **av;
|
||||
%left <val> '+' '-'
|
||||
%left <val> '*' '/' '%'
|
||||
%left <val> ':'
|
||||
%left UNARY
|
||||
|
||||
%token <val> TOKEN
|
||||
%type <val> start expr
|
||||
@ -124,6 +123,7 @@ struct val *vp;
|
||||
{
|
||||
if (vp->type == string)
|
||||
free (vp->u.s);
|
||||
free (vp);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user