]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug 684667: Modules/selectmodule.c returns NULL without exception set.
authorTim Peters <tim.peters@gmail.com>
Tue, 11 Feb 2003 18:05:44 +0000 (18:05 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 11 Feb 2003 18:05:44 +0000 (18:05 +0000)
Backport of fix from head.

Modules/selectmodule.c

index ec3a8c735552bdf4de456b64c969000bd0eb98ea..6f10c80ca67fce29c424d2354593566f6c61df67 100644 (file)
@@ -245,7 +245,7 @@ select_select(PyObject *self, PyObject *args)
                if (rfd2obj) PyMem_DEL(rfd2obj);
                if (wfd2obj) PyMem_DEL(wfd2obj);
                if (efd2obj) PyMem_DEL(efd2obj);
-               return NULL;
+               return PyErr_NoMemory();
        }
 #endif /* SELECT_USES_HEAP */
        /* Convert lists to fd_sets, and get maximum fd number