[issue25302] Memory Leaks with Address Sanitizer

2015-10-03 Thread Stefan Krah
Stefan Krah added the comment: Static types leak memory on finalization, see PEP 3121. Normally it does not matter, but you see it when embedding Python. PEP 3121 isn't widely implemented because a) it complicates the code for large modules and b) there are some performance issues. There are

[issue25302] Memory Leaks with Address Sanitizer

2015-10-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25302] Memory Leaks with Address Sanitizer

2015-10-02 Thread Matt Clarkson
New submission from Matt Clarkson: I have the following `main.cpp` ``` #include int main() { Py_Initialize(); if (!Py_IsInitialized()) return 1; Py_Finalize(); return 0; } ``` Compiled with on Arch Linux 4.2.1 gcc 5.2.0 python 3.4.3: ``` g++ -fsanitize=address main.cpp -o