mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Val: use class IntrusivePtr in class TableVal
This commit is contained in:
parent
93c2064b9a
commit
674e141a15
27 changed files with 88 additions and 109 deletions
|
@ -175,8 +175,8 @@ static TableVal* empty_addr_set()
|
|||
BroType* addr_t = base_type(TYPE_ADDR);
|
||||
TypeList* set_index = new TypeList(addr_t);
|
||||
set_index->Append(addr_t);
|
||||
SetType* s = new SetType(set_index, 0);
|
||||
return new TableVal(s);
|
||||
auto s = make_intrusive<SetType>(set_index, nullptr);
|
||||
return new TableVal(std::move(s));
|
||||
}
|
||||
|
||||
DNS_Mapping::DNS_Mapping(const char* host, struct hostent* h, uint32_t ttl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue