mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
support for discarding ASTs once compiled via ZAM script optimization
This commit is contained in:
parent
79c53c9ed6
commit
91d70e6dd4
13 changed files with 55 additions and 17 deletions
|
@ -132,8 +132,8 @@ ID::ID(const char* arg_name, IDScope arg_scope, bool arg_is_export)
|
|||
|
||||
ID::~ID()
|
||||
{
|
||||
ClearOptInfo();
|
||||
delete[] name;
|
||||
delete opt_info;
|
||||
}
|
||||
|
||||
std::string ID::ModuleName() const
|
||||
|
@ -687,6 +687,12 @@ std::vector<Func*> ID::GetOptionHandlers() const
|
|||
return v;
|
||||
}
|
||||
|
||||
void ID::ClearOptInfo()
|
||||
{
|
||||
delete opt_info;
|
||||
opt_info = nullptr;
|
||||
}
|
||||
|
||||
} // namespace detail
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue