diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-02-11 17:18:58 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-02-11 17:18:58 (GMT) |
commit | 5f322d3dfd1717acd77ba04693c6a6251e76475b (patch) | |
tree | f77d41ece48dde124ece3ea3b1a40583ca277210 /Modules/selectmodule.c | |
parent | 9af48ff44ea5e096495d9652f6164b45a369144a (diff) | |
download | cpython-5f322d3dfd1717acd77ba04693c6a6251e76475b.zip cpython-5f322d3dfd1717acd77ba04693c6a6251e76475b.tar.gz cpython-5f322d3dfd1717acd77ba04693c6a6251e76475b.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 0ff0b2c..98b75f0 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 |