From c080c839df9af286f8c153e7d4849b51898cb8e0 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Mon, 29 Jan 2018 14:41:08 +0000 Subject: [PATCH] Add more suppressions Use of subprocess module seems to tickle Valgrind, so activate some existing leak suppressions and add some more. --- tests/valgrind-python.supp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/valgrind-python.supp b/tests/valgrind-python.supp index 53cabca..7021766 100644 --- a/tests/valgrind-python.supp +++ b/tests/valgrind-python.supp @@ -67,7 +67,7 @@ Memcheck:Leak fun:malloc fun:PyThread_allocate_lock - fun:PyEval_InitThreads +# fun:PyEval_InitThreads } { @@ -100,7 +100,7 @@ Memcheck:Leak fun:realloc fun:_PyObject_GC_Resize - fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING +# fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING } { @@ -108,7 +108,7 @@ Memcheck:Leak fun:malloc fun:_PyObject_GC_New - fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING +# fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING } { @@ -116,7 +116,16 @@ Memcheck:Leak fun:malloc fun:_PyObject_GC_NewVar - fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING +# fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING +} + + +{ + Handle PyMalloc confusing valgrind (possibly leaked) + Memcheck:Leak + fun:malloc + fun:PyObject_Malloc +# fun:COMMENT_THIS_LINE_TO_DISABLE_LEAK_WARNING } # -- 2.50.1