Python Numpy Memory Leaks Due to PYTHONMALLOC (C Python and Address Sanitizer)
A simple C/C++ calling Python script to import numpy package will simply be reported Leaking Memory: include <Python.h> int main() { Py_Initialize(); PyRun_SimpleString("import numpy"); Py_Finalize(); return 0; } This …