mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
FileAnalysis: fix memory leak when adding actions.
This commit is contained in:
parent
f5d8ed299d
commit
abaa5d3eaf
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ void ActionSet::InsertAction(Action* act, HashKey* key)
|
|||
DBG_LOG(DBG_FILE_ANALYSIS, "Add action %d for file id %s", act->Tag(),
|
||||
info->GetFileID().c_str());
|
||||
action_map.Insert(key, act);
|
||||
delete key;
|
||||
info->GetVal()->Lookup(Info::actions_idx)->AsTableVal()->Assign(act->Args(),
|
||||
new RecordVal(BifType::Record::FileAnalysis::ActionResults));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue