mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Moving the rules deletion to the RuleProperties class
The deletion was happning on the Rule class due to historical reasons. The consequence of that was a parser memory leak.
This commit is contained in:
committed by
Felipe Zimmerle
parent
068a3eb517
commit
a8e5cce744
@@ -94,7 +94,7 @@ Rule::Rule(std::string marker)
|
||||
m_secmarker(true),
|
||||
m_marker(marker),
|
||||
m_maturity(0),
|
||||
m_referenceCount(0),
|
||||
m_referenceCount(1),
|
||||
m_fileName(""),
|
||||
m_lineNumber(0) { }
|
||||
|
||||
@@ -113,7 +113,7 @@ Rule::Rule(Operator *_op,
|
||||
m_secmarker(false),
|
||||
m_marker(""),
|
||||
m_maturity(0),
|
||||
m_referenceCount(0),
|
||||
m_referenceCount(1),
|
||||
m_fileName(fileName),
|
||||
m_lineNumber(lineNumber) {
|
||||
if (actions != NULL) {
|
||||
|
Reference in New Issue
Block a user