~Rule will delete chainedRule

Came across this memory leak when reloading nginx with hundreds of rule chains
This commit is contained in:
dkamen 2016-11-05 17:17:35 +02:00 committed by Felipe Zimmerle
parent 1b28776814
commit 936ec0b479
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -73,6 +73,10 @@ Rule::~Rule() {
if (variables != NULL) {
delete variables;
}
if (chainedRule != NULL) {
delete chainedRule;
}
}
Rule::Rule(std::string marker)