Skip to content

Commit 6ca028b

Browse files
martinhsvzimmerle
authored andcommitted
Fix memory leak in rx operator when pattern includes macro
1 parent 9764b1f commit 6ca028b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/operators/rx.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ bool Rx::evaluate(Transaction *transaction, RuleWithActions *rule,
6969
logOffset(ruleMessage, capture.m_offset, capture.m_length);
7070
}
7171

72-
if (!captures.empty()) {
73-
return true;
74-
}
75-
7672
if (m_string->m_containsMacro) {
7773
delete re;
7874
}
7975

76+
if (!captures.empty()) {
77+
return true;
78+
}
79+
8080
return false;
8181
}
8282

0 commit comments

Comments
 (0)