mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Fix a reference counting bug in ListVal ctor.
This commit is contained in:
parent
f7c2c00045
commit
bfaa082aee
3 changed files with 10 additions and 4 deletions
|
@ -1152,7 +1152,7 @@ bool PatternVal::DoUnserialize(UnserialInfo* info)
|
|||
}
|
||||
|
||||
ListVal::ListVal(TypeTag t)
|
||||
: Val(new TypeList(t == TYPE_ANY ? 0 : base_type(t)))
|
||||
: Val(new TypeList(t == TYPE_ANY ? 0 : base_type_no_ref(t)))
|
||||
{
|
||||
tag = t;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue