mirror of https://github.com/mgba-emu/mgba.git
Free identifiers
This commit is contained in:
parent
ce1dd4416f
commit
b89d6216ac
|
@ -289,5 +289,9 @@ void parseFree(struct ParseTree* tree) {
|
||||||
|
|
||||||
parseFree(tree->lhs);
|
parseFree(tree->lhs);
|
||||||
parseFree(tree->rhs);
|
parseFree(tree->rhs);
|
||||||
|
|
||||||
|
if (tree->token.type == TOKEN_IDENTIFIER_TYPE) {
|
||||||
|
free(tree->token.identifierValue);
|
||||||
|
}
|
||||||
free(tree);
|
free(tree);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue