Author phsilva
Recipients Jim Fasarakis-Hilliard, amaury.forgeotdarc, christian.heimes, corona10, eric.snow, erlendaasland, isoschiz, koubaa, kylotan, lukasz.langa, miss-islington, orsenthil, pconnell, petr.viktorin, phsilva, python-dev, santoso.wijaya, serhiy.storchaka, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-12-30.01:06:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609290397.83.0.526054768096.issue1635741@roundup.psfhosted.org>
In-reply-to
Content
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

---
History
Date User Action Args
2020-12-30 01:06:38phsilvasetrecipients: + phsilva, amaury.forgeotdarc, orsenthil, kylotan, vstinner, christian.heimes, tlesher, petr.viktorin, ysj.ray, santoso.wijaya, lukasz.langa, python-dev, eric.snow, serhiy.storchaka, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991, erlendaasland, koubaa
2020-12-30 01:06:37phsilvasetmessageid: <1609290397.83.0.526054768096.issue1635741@roundup.psfhosted.org>
2020-12-30 01:06:37phsilvalinkissue1635741 messages
2020-12-30 01:06:37phsilvacreate