mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +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 ( int i = 0; i < Rule::TYPES; ++i )
|
||||||
{
|
{
|
||||||
for ( auto pset : psets[i] )
|
for ( auto pset : psets[i] )
|
||||||
|
{
|
||||||
delete pset->re;
|
delete pset->re;
|
||||||
|
delete pset;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete ruleset;
|
delete ruleset;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue