mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 18:48:20 +00:00
Fix memory leak w/ when statements - BIT-1058
Specifically if the condition of a when statement uses an index expression (e.g. table lookup).
This commit is contained in:
parent
bc819750b9
commit
8432f05bdb
1 changed files with 3 additions and 0 deletions
|
@ -44,7 +44,10 @@ TraversalCode TriggerTraversalCallback::PreExpr(const Expr* expr)
|
|||
BroObj::SuppressErrors no_errors;
|
||||
Val* v = e->Eval(trigger->frame);
|
||||
if ( v )
|
||||
{
|
||||
trigger->Register(v);
|
||||
Unref(v);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue