mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
RuleMatcher: delete PatternSet instances in destructor (memleak)
This commit is contained in:
parent
b2072c4c5c
commit
7f97f74203
1 changed files with 3 additions and 0 deletions
|
@ -130,7 +130,10 @@ RuleHdrTest::~RuleHdrTest()
|
|||
for ( int i = 0; i < Rule::TYPES; ++i )
|
||||
{
|
||||
for ( auto pset : psets[i] )
|
||||
{
|
||||
delete pset->re;
|
||||
delete pset;
|
||||
}
|
||||
}
|
||||
|
||||
delete ruleset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue