summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-11 23:05:40 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-11 23:05:40 (GMT)
commitec74f2fda79663d9e61d704315b737e262b83618 (patch)
tree5d26976de4c27c1acf0d3b3c43b88c55860a0bf3 /Objects/unicodeobject.c
parent42f08ac1e303117ea789a8ad2a1326db75f923f8 (diff)
downloadcpython-ec74f2fda79663d9e61d704315b737e262b83618.zip
cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.gz
cpython-ec74f2fda79663d9e61d704315b737e262b83618.tar.bz2
Add more missing PyErr_NoMemory() after failled memory allocs
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6a358da..14318f6 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -6661,7 +6661,7 @@ unicode_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
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;