Skip to content

Commit d7c77a7

Browse files
liudongmiaoLiu Dongmiao
authored andcommitted
fix memory leak in rules
1 parent 17f3bb0 commit d7c77a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

headers/modsecurity/rule.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class Rule {
8686
return *this;
8787
}
8888

89+
virtual ~Rule() {}
90+
8991
virtual bool evaluate(Transaction *transaction) = 0;
9092

9193
virtual bool evaluate(Transaction *transaction,

0 commit comments

Comments
 (0)