mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Fix memory leak in script_opt's Expr code
This commit is contained in:
parent
3c7a52d0a7
commit
430d344ec2
1 changed files with 1 additions and 1 deletions
|
@ -1909,7 +1909,7 @@ ExprPtr IndexExprWhen::Duplicate()
|
||||||
|
|
||||||
ExprPtr FieldExpr::Duplicate()
|
ExprPtr FieldExpr::Duplicate()
|
||||||
{
|
{
|
||||||
return SetSucc(new FieldExpr(op->Duplicate(), util::copy_string(field_name)));
|
return SetSucc(new FieldExpr(op->Duplicate(), field_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
ExprPtr HasFieldExpr::Duplicate()
|
ExprPtr HasFieldExpr::Duplicate()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue