[Python-checkins] python/dist/src/Objects unicodeobject.c,2.181,2.182

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


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv25791/Objects
Modified Files:
	unicodeobject.c 
Log Message:
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.181
retrieving revision 2.182
diff -C2 -d -r2.181 -r2.182
*** unicodeobject.c	9 Feb 2003 23:42:56 -0000	2.181
--- unicodeobject.c	11 Feb 2003 23:05:37 -0000	2.182
***************
*** 6662,6666 ****
 		_Py_ForgetReference((PyObject *)pnew);
 		PyObject_Del(pnew);
! 		return NULL;
 	}
 	Py_UNICODE_COPY(pnew->str, tmp->str, n+1);
--- 6662,6666 ----
 		_Py_ForgetReference((PyObject *)pnew);
 		PyObject_Del(pnew);
! 		return PyErr_NoMemory();
 	}
 	Py_UNICODE_COPY(pnew->str, tmp->str, n+1);

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