Lines Matching refs:pnew
8854 PyUnicodeObject *tmp, *pnew; in unicode_subtype_new() local
8862 pnew = (PyUnicodeObject *) type->tp_alloc(type, n = tmp->length); in unicode_subtype_new()
8863 if (pnew == NULL) { in unicode_subtype_new()
8867 pnew->str = (Py_UNICODE*) PyObject_MALLOC(sizeof(Py_UNICODE) * (n+1)); in unicode_subtype_new()
8868 if (pnew->str == NULL) { in unicode_subtype_new()
8869 _Py_ForgetReference((PyObject *)pnew); in unicode_subtype_new()
8870 PyObject_Del(pnew); in unicode_subtype_new()
8874 Py_UNICODE_COPY(pnew->str, tmp->str, n+1); in unicode_subtype_new()
8875 pnew->length = n; in unicode_subtype_new()
8876 pnew->hash = tmp->hash; in unicode_subtype_new()
8878 return (PyObject *)pnew; in unicode_subtype_new()