[Python-checkins] CVS: python/dist/src/Modules gcmodule.c,2.32,2.33

Martin v. L?wis loewis@users.sourceforge.net
Sun, 02 Dec 2001 10:31:04 -0800


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

Modified Files:
	gcmodule.c 
Log Message:
Check for NULL return value of PyList_New (follow-up to patch #486743).


Index: gcmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/gcmodule.c,v
retrieving revision 2.32
retrieving revision 2.33
diff -C2 -d -r2.32 -r2.33
*** gcmodule.c	2001/12/02 12:21:34	2.32
--- gcmodule.c	2001/12/02 18:31:02	2.33
***************
*** 725,728 ****
--- 725,731 ----
  		return NULL;
  	result = PyList_New(0);
+ 	if (result == NULL) {
+ 		return NULL;
+ 	}
  	if (append_objects(result, &_PyGC_generation0) ||
  	    append_objects(result, &generation1) ||