File tree 4 files changed +14
-2
lines changed
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
v3.x.y - YYYY-MMM-DD (to be released)
2
2
-------------------------------------
3
3
4
+ - Fix two rule-reload memory leak issues
5
+ [Issue #2801 - @Abce, @martinhsv]
4
6
- Correct whitespace handling for Include directive
5
7
[Issue #2800 - @877509395, @martinhsv]
6
8
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ class Rule {
86
86
return *this ;
87
87
}
88
88
89
+ virtual ~Rule () {}
90
+
89
91
virtual bool evaluate (Transaction *transaction) = 0;
90
92
91
93
virtual bool evaluate (Transaction *transaction,
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ RuleWithActions::RuleWithActions(
80
80
m_containsStaticBlockAction(false ),
81
81
m_isChained(false ) {
82
82
83
+ if (transformations != NULL ) {
84
+ delete transformations;
85
+ }
86
+
83
87
if (actions) {
84
88
for (Action *a : *actions) {
85
89
if (a->action_kind == Action::ConfigurationKind) {
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ danglingTempReference:src/modsecurity.cc:206
55
55
knownConditionTrueFalse:src/operators/validate_url_encoding.cc:77
56
56
knownConditionTrueFalse:src/operators/verify_svnr.cc:87
57
57
rethrowNoCurrentException:headers/modsecurity/transaction.h:309
58
- rethrowNoCurrentException:src/rule_with_actions.cc:123
59
- ctunullpointer:src/rule_with_actions.cc:237
58
+ rethrowNoCurrentException:src/rule_with_actions.cc:127
59
+ ctunullpointer:src/rule_with_actions.cc:241
60
60
ctunullpointer:src/rule_with_operator.cc:135
61
61
ctunullpointer:src/rule_with_operator.cc:95
62
62
passedByValue:src/variables/global.h:109
@@ -93,6 +93,10 @@ functionStatic
93
93
variableScope
94
94
shadowFunction
95
95
96
+ constVariable
97
+ stlcstrConstructor
98
+ stlcstrStream
99
+ uselessCallsSubstr
96
100
97
101
// Examples
98
102
memleak:examples/reading_logs_via_rule_message/reading_logs_via_rule_message.h:147
You can’t perform that action at this time.
0 commit comments