mirror of https://github.com/python/cpython.git
Issue #19437: Fix select.epoll.poll(), fix code handling PyMem_New() error
The bug was introduced with the select.epoll module! So it's 5 years old :-)
This commit is contained in:
parent
f0a7bac201
commit
7613542a27
|
@ -1459,7 +1459,6 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
|
|||
|
||||
evs = PyMem_New(struct epoll_event, maxevents);
|
||||
if (evs == NULL) {
|
||||
Py_DECREF(self);
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue