Commit 03abb523 authored by Victor Stinner's avatar Victor Stinner

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 :-)
parent 5dee95b9
......@@ -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;
}
......
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