Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7613542

Browse files
committed
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 :-)
1 parent f0a7bac commit 7613542

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Modules/selectmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,6 @@ pyepoll_poll(pyEpoll_Object *self, PyObject *args, PyObject *kwds)
14591459

14601460
evs = PyMem_New(struct epoll_event, maxevents);
14611461
if (evs == NULL) {
1462-
Py_DECREF(self);
14631462
PyErr_NoMemory();
14641463
return NULL;
14651464
}

0 commit comments

Comments
 (0)