From 6ca028b6f5713ea505bcdd39a43a1aaa4fba936e Mon Sep 17 00:00:00 2001 From: martinhsv <55407942+martinhsv@users.noreply.github.com> Date: Thu, 21 Jan 2021 16:40:56 -0800 Subject: [PATCH] Fix memory leak in rx operator when pattern includes macro --- src/operators/rx.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/operators/rx.cc b/src/operators/rx.cc index 1f321132..f69ca97d 100644 --- a/src/operators/rx.cc +++ b/src/operators/rx.cc @@ -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; }