From 7613542a27a03b7ade40e298aed6b3115dcad0df Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 30 Oct 2013 19:57:52 +0100 Subject: 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 :-) --- Modules/selectmodule.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 22106b1..6291a2d 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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; } -- cgit v0.12