From: Victor Stinner Date: Wed, 30 Oct 2013 18:57:52 +0000 (+0100) Subject: Issue #19437: Fix select.epoll.poll(), fix code handling PyMem_New() error X-Git-Tag: v3.4.0b1~467 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7613542a27a03b7ade40e298aed6b3115dcad0df;p=thirdparty%2FPython%2Fcpython.git 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 :-) --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 22106b1dbd37..6291a2daa929 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; }