[Python-checkins] python/dist/src/Objects unicodeobject.c,2.124.6.19,2.124.6.20

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
2003年2月11日 15:20:09 -0800


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv31828/Objects
Modified Files:
 Tag: release22-maint
	unicodeobject.c 
Log Message:
Backport: Add more missing PyErr_NoMemory() after failled memory allocs
Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.124.6.19
retrieving revision 2.124.6.20
diff -C2 -d -r2.124.6.19 -r2.124.6.20
*** unicodeobject.c	2 Jan 2003 22:08:39 -0000	2.124.6.19
--- unicodeobject.c	11 Feb 2003 23:19:29 -0000	2.124.6.20
***************
*** 5877,5881 ****
 		_Py_ForgetReference((PyObject *)pnew);
 		PyObject_DEL(pnew);
! 		return NULL;
 	}
 	Py_UNICODE_COPY(pnew->str, tmp->str, n+1);
--- 5877,5881 ----
 		_Py_ForgetReference((PyObject *)pnew);
 		PyObject_DEL(pnew);
! 		return PyErr_NoMemory();
 	}
 	Py_UNICODE_COPY(pnew->str, tmp->str, n+1);

AltStyle によって変換されたページ (->オリジナル) /