summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-07-08 22:49:03 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-07-08 22:49:03 (GMT)
commitbbf8ce5b87f355796ec9fea1cf0adba9de5e5ce1 (patch)
tree915ebabf322c4b53a9756249cb7c18e665a0019f /Modules/selectmodule.c
parentc4266360fc70745d49b09f2c29cda91c1a007525 (diff)
downloadcpython-bbf8ce5b87f355796ec9fea1cf0adba9de5e5ce1.zip
cpython-bbf8ce5b87f355796ec9fea1cf0adba9de5e5ce1.tar.gz
cpython-bbf8ce5b87f355796ec9fea1cf0adba9de5e5ce1.tar.bz2
Issue #18408: Fix select.select() to handle PyList_New() failure (MemoryError)
in set2list()
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index ac44985..252dee2 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -299,9 +299,9 @@ select_select(PyObject *self, PyObject *args)
else
ret = PyTuple_Pack(3, ifdlist, ofdlist, efdlist);
- Py_DECREF(ifdlist);
- Py_DECREF(ofdlist);
- Py_DECREF(efdlist);
+ Py_XDECREF(ifdlist);
+ Py_XDECREF(ofdlist);
+ Py_XDECREF(efdlist);
}
finally: