summaryrefslogtreecommitdiff
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-11 17:18:58 +0000
committerTim Peters <tim.peters@gmail.com>2003-02-11 17:18:58 +0000
commit7e3afe0183f555b5315aeaa955b1d3f9d389eead (patch)
treea5a6480766235e7e43ea9da46e291ac08208095a /Modules/selectmodule.c
parent15be5f0dee4554e336cd18ce5e62480c2e91e874 (diff)
downloadcpython-7e3afe0183f555b5315aeaa955b1d3f9d389eead.tar.gz
SF bug 684667: Modules/selectmodule.c returns NULL without exception set.
select_select() didn't set an exception in the SELECT_USES_HEAP case when malloc() returned NULL.
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 0ff0b2cc16..98b75f0672 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -248,7 +248,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