[Python-bugs-list] [ python-Bugs-684667 ] Modules/selectmodule.c returns NULL without exception set
SourceForge.net
noreply@sourceforge.net
Tue, 11 Feb 2003 09:26:37 -0800
Bugs item #684667, was opened at 2003-02-11 10:34
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684667&group_id=5470
Category: Extension Modules
Group: Python 2.2.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Troels Walsted Hansen (troels)
>Assigned to: Tim Peters (tim_one)
Summary: Modules/selectmodule.c returns NULL without exception set
Initial Comment:
The "return NULL" statement below should read "return
PyErr_NoMemory()".
#ifdef SELECT_USES_HEAP
/* Allocate memory for the lists */
rfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
wfd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
efd2obj = PyMem_NEW(pylist, FD_SETSIZE + 1);
if (rfd2obj == NULL || wfd2obj == NULL || efd2obj
== NULL) {
if (rfd2obj) PyMem_DEL(rfd2obj);
if (wfd2obj) PyMem_DEL(wfd2obj);
if (efd2obj) PyMem_DEL(efd2obj);
return NULL;
}
#endif /* SELECT_USES_HEAP */
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2003-02-11 12:26
Message:
Logged In: YES
user_id=31435
Good eye! Fixed in Modules/selectmodule.c, rev 2.73.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=684667&group_id=5470