Commit bbf8ce5b authored by Victor Stinner's avatar Victor Stinner

Issue #18408: Fix select.select() to handle PyList_New() failure (MemoryError)

in set2list()
parent c4266360
......@@ -299,9 +299,9 @@ select_select(PyObject *self, PyObject *args)
else
ret = PyTuple_Pack(3, ifdlist, ofdlist, efdlist);
Py_DECREF(ifdlist);
Py_DECREF(ofdlist);
Py_DECREF(efdlist);
Py_XDECREF(ifdlist);
Py_XDECREF(ofdlist);
Py_XDECREF(efdlist);
}
finally:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment