Skip to content

Commit 5976ddd

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

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
@@ -70,7 +70,7 @@ jobs:
7070
TestProcessExecutorFiles \
7171
TestSuppressions::suppressionsSettingsProcessesFiles \
7272
TestSuppressions::suppressionsSettingsProcessesFS"
73-
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
73+
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
7474
cat memcheck.log
7575
exit $ec
7676
# 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)