Skip to content

Commit 065aff3

Browse files
authored
[2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202)
_PyWarnings_Init() only allocates memory once at startup but it is not released at exit. Ignore this issue to be able to catch other bugs more easily.
1 parent 4397c68 commit 065aff3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
valgrind: suppress a false alarm in memory leak checks. _PyWarnings_Init()
2+
only allocates memory once at startup but it is not released at exit. Ignore
3+
this issue to be able to catch other bugs more easily.

Misc/valgrind-python.supp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@
103103
fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING
104104
}
105105

106+
{
107+
bpo-37329: _PyWarnings_Init allocates memory at startup, but doesn't release it at exit
108+
Memcheck:Leak
109+
fun:malloc
110+
...
111+
fun:_PyWarnings_Init
112+
}
113+
106114
#
107115
# Non-python specific leaks
108116
#

0 commit comments

Comments
 (0)