mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
~Rule will delete chainedRule
Came across this memory leak when reloading nginx with hundreds of rule chains
This commit is contained in:
parent
1b28776814
commit
936ec0b479
@ -73,6 +73,10 @@ Rule::~Rule() {
|
|||||||
if (variables != NULL) {
|
if (variables != NULL) {
|
||||||
delete variables;
|
delete variables;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (chainedRule != NULL) {
|
||||||
|
delete chainedRule;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rule::Rule(std::string marker)
|
Rule::Rule(std::string marker)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user