Paulo Henrique Silva <ph.si...@gmail.com> added the comment:
Repeated msg355187 testing on master[056c08211b]. --- #include <Python.h> void func() { Py_Initialize(); Py_Finalize(); Py_ssize_t cnt = _Py_GetRefTotal(); printf("sys.gettotalrefcount(): %zd\n", cnt); } int main(int argc, char *argv[]) { Py_SetProgramName(L"./_testembed"); for (int i=0; i < 10; i++) { func(); } } --- No refs leaking anymore!? --- sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 sys.gettotalrefcount(): 10241 --- ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue1635741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com