Author vstinner
Recipients ZackerySpytz, inada.naoki, miss-islington, paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-06-23.13:07:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It seems like Python 2.7 is inaffected by the bug:

static int
BZ2File_init(BZ2FileObject *self, PyObject *args, PyObject *kwargs)
    if (!self->lock) {
        self->lock = PyThread_allocate_lock();

    if (!self->lock) {
        PyErr_SetString(PyExc_MemoryError, "unable to allocate lock");
        goto error;

I fixed the leak in Python 3.6, 3.7 and master. I close the issue.
Date User Action Args
2018-06-23 13:07:46vstinnersetrecipients: + vstinner, paul.moore, tim.golden, inada.naoki, zach.ware, serhiy.storchaka, steve.dower, ZackerySpytz, miss-islington
2018-06-23 13:07:46vstinnersetmessageid: <>
2018-06-23 13:07:46vstinnerlinkissue33916 messages
2018-06-23 13:07:46vstinnercreate