[Python-Dev] possible memory leak on windows (valgrind report)

"Martin v. Löwis" martin at v.loewis.de
Wed Sep 21 20:27:12 CEST 2005

Neal Norwitz wrote:
> (I need to write a lot more suppression rules for gentoo.)

This could be due to your using GCC 4. Apparently, gcc 4
is willing to inline Py_ADDRESS_IN_RANGE even though it
appears at the end of the file, at -O3.

To suppress that, you can declare the function as
__attribute__((noinline)). You will need to conditionalize
this on gcc, but not only that: it appears that noinline
was one of the more recent additions. I'm not sure when
it was added, but apparently, it is present in 3.3 and

Alternatively, just recompiling the file without -O3 also


More information about the Python-Dev mailing list