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

in set2list()
This commit is contained in:
Victor Stinner 2013-07-09 00:49:03 +02:00
parent c4266360fc
commit bbf8ce5b87
1 changed files with 3 additions and 3 deletions

View File

@ -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: