[Python-checkins] python/dist/src/Modules selectmodule.c,2.59.6.2,2.59.6.3

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 11 Feb 2003 10:05:48 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv31084/Modules

Modified Files:
      Tag: release22-maint
	selectmodule.c 
Log Message:
SF bug 684667: Modules/selectmodule.c returns NULL without exception set.
Backport of fix from head.


Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.59.6.2
retrieving revision 2.59.6.3
diff -C2 -d -r2.59.6.2 -r2.59.6.3
*** selectmodule.c	24 Sep 2002 17:24:25 -0000	2.59.6.2
--- selectmodule.c	11 Feb 2003 18:05:44 -0000	2.59.6.3
***************
*** 246,250 ****
  		if (wfd2obj) PyMem_DEL(wfd2obj);
  		if (efd2obj) PyMem_DEL(efd2obj);
! 		return NULL;
  	}
  #endif /* SELECT_USES_HEAP */
--- 246,250 ----
  		if (wfd2obj) PyMem_DEL(wfd2obj);
  		if (efd2obj) PyMem_DEL(efd2obj);
! 		return PyErr_NoMemory();
  	}
  #endif /* SELECT_USES_HEAP */