mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Revert "Type: Add TypeManager->TypeList() and use for ListVal()"
This reverts commit 24c606b4df
.
This commit introduced a memory leak ListVal::Append() modifying
the cached TYPE_ANY type list.
This commit is contained in:
parent
10f96aeba3
commit
a0540f96a1
4 changed files with 4 additions and 36 deletions
|
@ -1188,7 +1188,10 @@ ValPtr PatternVal::DoClone(CloneState* state)
|
|||
return state->NewClone(this, make_intrusive<PatternVal>(re));
|
||||
}
|
||||
|
||||
ListVal::ListVal(TypeTag t) : Val(type_mgr->TypeList(t)), tag(t) { }
|
||||
ListVal::ListVal(TypeTag t) : Val(make_intrusive<TypeList>(t == TYPE_ANY ? nullptr : base_type(t)))
|
||||
{
|
||||
tag = t;
|
||||
}
|
||||
|
||||
ListVal::~ListVal() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue