Skip to content

Commit

Permalink
Delete lvalue expression if we failed to parse out an assignment stat…
Browse files Browse the repository at this point in the history
…ement.
  • Loading branch information
icculus committed Dec 3, 2017
1 parent 23620ce commit c245b76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mojobasic_parser.cpp
Expand Up @@ -589,6 +589,7 @@ AstStatement *Parser::parseIdentifierStatement()
}
}

delete lvalue;
return NULL; // i give up
} // Parser::parseIdentifierStatement

Expand Down

0 comments on commit c245b76

Please sign in to comment.