mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +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);
|
logOffset(ruleMessage, capture.m_offset, capture.m_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!captures.empty()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_string->m_containsMacro) {
|
if (m_string->m_containsMacro) {
|
||||||
delete re;
|
delete re;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!captures.empty()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user