[Python-checkins] cpython: Issue #19437: Fix select.epoll.poll(), fix code handling PyMem_New() error
victor.stinner
python-checkins at python.org
Wed Oct 30 19:58:54 CET 2013
http://hg.python.org/cpython/rev/b49f9aa12dae
changeset: 86783:b49f9aa12dae
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Oct 30 19:57:52 2013 +0100
summary:
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 :-)
files:
Modules/selectmodule.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1459,7 +1459,6 @@
evs = PyMem_New(struct epoll_event, maxevents);
if (evs == NULL) {
- Py_DECREF(self);
PyErr_NoMemory();
return NULL;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list