Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 27828:6ba940cd99ef 2.2
Backport: Add more missing PyErr_NoMemory() after failled memory allocs
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Tue, 11 Feb 2003 23:19:35 +0000 |
| parents | b30fe4dcc697 |
| children | c2ad62f4ea9b |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Tue Feb 11 18:05:44 2003 +0000 +++ b/Objects/unicodeobject.c Tue Feb 11 23:19:35 2003 +0000 @@ -5876,7 +5876,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;
