mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Fix reference counting bug in table coercion expressions.
This commit is contained in:
parent
ad6c58ce43
commit
ed7273ccf1
1 changed files with 1 additions and 1 deletions
|
@ -4330,7 +4330,7 @@ Val* TableCoerceExpr::Fold(Val* v) const
|
||||||
if ( tv->Size() > 0 )
|
if ( tv->Size() > 0 )
|
||||||
Internal("coercion of non-empty table/set");
|
Internal("coercion of non-empty table/set");
|
||||||
|
|
||||||
return new TableVal(Type()->Ref()->AsTableType(), tv->Attrs());
|
return new TableVal(Type()->AsTableType(), tv->Attrs());
|
||||||
}
|
}
|
||||||
|
|
||||||
IMPLEMENT_SERIAL(TableCoerceExpr, SER_TABLE_COERCE_EXPR);
|
IMPLEMENT_SERIAL(TableCoerceExpr, SER_TABLE_COERCE_EXPR);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue