diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-10-30 18:57:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-10-30 18:57:52 (GMT) |
commit | 7613542a27a03b7ade40e298aed6b3115dcad0df (patch) | |
tree | b4b4366dd77f7599fc3f12ba7168fa47a8bb580b | |
parent | f0a7bac20174f602280cf4edb70bb8fe7480e2b0 (diff) | |
download | cpython-7613542a27a03b7ade40e298aed6b3115dcad0df.zip cpython-7613542a27a03b7ade40e298aed6b3115dcad0df.tar.gz cpython-7613542a27a03b7ade40e298aed6b3115dcad0df.tar.bz2 |
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 :-)
-rw-r--r-- | Modules/selectmodule.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |