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);
|
result = leftValue -> operator/ (rightValue);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
delete leftValue;
|
||||||
|
delete rightValue;
|
||||||
throw EvaluationException("Can't evaluate operation to numeric");
|
throw EvaluationException("Can't evaluate operation to numeric");
|
||||||
}
|
}
|
||||||
delete leftValue;
|
delete leftValue;
|
||||||
|
|
Loading…
Reference in New Issue