From 7e26b92e9b18b20ab2b2245f1839ec1597c41f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Dam=C3=A1zio?= Date: Tue, 28 Dec 2021 16:22:00 -0300 Subject: [PATCH] docs: remove references to excluded Py_USING_MEMORY_DEBUGGER --- Misc/README.valgrind | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Misc/README.valgrind b/Misc/README.valgrind index b483b2ea60a4d2..ee9bfdf859d7f4 100644 --- a/Misc/README.valgrind +++ b/Misc/README.valgrind @@ -12,12 +12,9 @@ can be used to force the usage of the malloc() allocator of the C library. If you don't want to read about the details of using Valgrind, there are still two things you must do to suppress the warnings. First, you must use a suppressions file. One is supplied in -Misc/valgrind-python.supp. Second, you must do one of the following: - - * Uncomment Py_USING_MEMORY_DEBUGGER in Objects/obmalloc.c, - then rebuild Python - * Uncomment the lines in Misc/valgrind-python.supp that - suppress the warnings for PyObject_Free and PyObject_Realloc +Misc/valgrind-python.supp. Second, you must uncomment the lines in +Misc/valgrind-python.supp that suppress the warnings for PyObject_Free and +PyObject_Realloc. If you want to use Valgrind more effectively and catch even more memory leaks, you will need to configure python --without-pymalloc.