diff --git a/src/debugger/parser.c b/src/debugger/parser.c index 9344f0dbd..55d55261f 100644 --- a/src/debugger/parser.c +++ b/src/debugger/parser.c @@ -289,5 +289,9 @@ void parseFree(struct ParseTree* tree) { parseFree(tree->lhs); parseFree(tree->rhs); + + if (tree->token.type == TOKEN_IDENTIFIER_TYPE) { + free(tree->token.identifierValue); + } free(tree); }