From: Tim Peters Date: Tue, 11 Feb 2003 18:05:44 +0000 (+0000) Subject: SF bug 684667: Modules/selectmodule.c returns NULL without exception set. X-Git-Tag: v2.2.3c1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea57ec81691818faaf38976c9064d065c77bc8e1;p=thirdparty%2FPython%2Fcpython.git SF bug 684667: Modules/selectmodule.c returns NULL without exception set. Backport of fix from head. --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ec3a8c735552..6f10c80ca67f 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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