mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Expr: fix memory leaks in BinaryExpr::Eval()
This commit is contained in:
parent
36d4b25ac0
commit
593ebc1d62
1 changed files with 2 additions and 0 deletions
|
@ -494,6 +494,8 @@ Val* BinaryExpr::Eval(Frame* f) const
|
||||||
|
|
||||||
if ( v_op1->Size() != v_op2->Size() )
|
if ( v_op1->Size() != v_op2->Size() )
|
||||||
{
|
{
|
||||||
|
Unref(v1);
|
||||||
|
Unref(v2);
|
||||||
RuntimeError("vector operands are of different sizes");
|
RuntimeError("vector operands are of different sizes");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue