Fix memory leak on error
This commit is contained in:
parent
b2fa857c9b
commit
fe2007b095
|
@ -23,6 +23,8 @@ NumericEvalValue* Evaluator::EvaluateIntegerBinary(BoundBinaryExpression *expres
|
|||
result = leftValue -> operator/ (rightValue);
|
||||
break;
|
||||
default:
|
||||
delete leftValue;
|
||||
delete rightValue;
|
||||
throw EvaluationException("Can't evaluate operation to numeric");
|
||||
}
|
||||
delete leftValue;
|
||||
|
|
Loading…
Reference in New Issue