mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix memory leak in rx operator when pattern includes macro
This commit is contained in:
parent
9764b1fb3b
commit
6ca028b6f5
@ -69,14 +69,14 @@ bool Rx::evaluate(Transaction *transaction, RuleWithActions *rule,
|
||||
logOffset(ruleMessage, capture.m_offset, capture.m_length);
|
||||
}
|
||||
|
||||
if (!captures.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (m_string->m_containsMacro) {
|
||||
delete re;
|
||||
}
|
||||
|
||||
if (!captures.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user