Expr: fix memory leaks in BinaryExpr::Eval()

This commit is contained in:
Max Kellermann 2020-02-19 10:59:12 +01:00
parent 36d4b25ac0
commit 593ebc1d62

View file

@ -494,6 +494,8 @@ Val* BinaryExpr::Eval(Frame* f) const
if ( v_op1->Size() != v_op2->Size() )
{
Unref(v1);
Unref(v2);
RuntimeError("vector operands are of different sizes");
return 0;
}