diff Objects/unicodeobject.c @ 27826:7dffcc498c45 legacy-trunk

Add more missing PyErr_NoMemory() after failled memory allocs
author Neal Norwitz <nnorwitz@gmail.com>
date Tue, 11 Feb 2003 23:05:40 +0000
parents bfc524379307
children fe1d571c3f80
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Tue Feb 11 22:43:24 2003 +0000
+++ b/Objects/unicodeobject.c	Tue Feb 11 23:05:40 2003 +0000
@@ -6661,7 +6661,7 @@
 	if (pnew->str == NULL) {
 		_Py_ForgetReference((PyObject *)pnew);
 		PyObject_Del(pnew);
-		return NULL;
+		return PyErr_NoMemory();
 	}
 	Py_UNICODE_COPY(pnew->str, tmp->str, n+1);
 	pnew->length = n;