mirror of
https://github.com/python/cpython.git
synced 2025-10-22 06:32:43 +00:00
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
1 changed files with 0 additions and 1 deletions
|
@ -1459,7 +1459,6 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
|
||||||
|
|
||||||
evs = PyMem_New(struct epoll_event, maxevents);
|
evs = PyMem_New(struct epoll_event, maxevents);
|
||||||
if (evs == NULL) {
|
if (evs == NULL) {
|
||||||
Py_DECREF(self);
|
|
||||||
PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue