Free identifiers

This commit is contained in:
Jeffrey Pfau 2014-07-12 17:13:58 -07:00
parent ce1dd4416f
commit b89d6216ac
1 changed files with 4 additions and 0 deletions

View File

@ -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);
} }