diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 22:49:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-07-08 22:49:03 (GMT) |
commit | bbf8ce5b87f355796ec9fea1cf0adba9de5e5ce1 (patch) | |
tree | 915ebabf322c4b53a9756249cb7c18e665a0019f /Modules | |
parent | c4266360fc70745d49b09f2c29cda91c1a007525 (diff) | |
download | cpython-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')
-rw-r--r-- | Modules/selectmodule.c | 6 |
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: |