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:
Victor Stinner 2013-10-30 19:57:52 +01:00
parent f0a7bac201
commit 7613542a27
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}