Skip to content

Commit 85ee368

Browse files
committed
fixed #14620 - add suppression for valgrind false positive
removed LSAN suppression fixed #14619 - fixed potential memory leak using `--rule`
1 parent aa2af29 commit 85ee368

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/valgrind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
TestProcessExecutorFiles \
5858
TestSuppressions::suppressionsSettingsProcessesFiles \
5959
TestSuppressions::suppressionsSettingsProcessesFS"
60-
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner -t -x $excluded_tests 9>memcheck.log || ec=1
60+
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all -s --log-fd=9 --error-exitcode=42 ./testrunner -t -x $excluded_tests 9>memcheck.log || ec=1
6161
cat memcheck.log
6262
exit $ec
6363
# TODO: debuginfod.ubuntu.com is currently not responding to any requests causing it to run into a 40(!) minute timeout

lib/regex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace {
167167
~PcreRegex() override
168168
{
169169
if (mExtra) {
170-
pcre_free(mExtra);
170+
pcre_free_study(mExtra);
171171
mExtra = nullptr;
172172
}
173173
if (mRe) {

lsan-suppr.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

valgrind/testrunner.supp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@
1414
obj:*
1515
obj:*
1616
}
17+
{
18+
TestRegEx::partialmatch false positive
19+
Memcheck:Cond
20+
obj:*
21+
obj:*
22+
}

0 commit comments

Comments
 (0)