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
|
@ -1691,7 +1691,7 @@ void VectorType::Describe(ODesc* d) const
|
|||
yield_type->Describe(d);
|
||||
}
|
||||
|
||||
BroType* base_type(TypeTag tag)
|
||||
BroType* base_type_no_ref(TypeTag tag)
|
||||
{
|
||||
static BroType* base_types[NUM_TYPES];
|
||||
|
||||
|
@ -1707,7 +1707,7 @@ BroType* base_type(TypeTag tag)
|
|||
base_types[t]->SetLocationInfo(&l);
|
||||
}
|
||||
|
||||
return base_types[t]->Ref();
|
||||
return base_types[t];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue