gh-101765: unicodeobject: use Py_XDECREF correctly (#102283)

This commit is contained in:
Jelle Zijlstra 2023-02-26 14:45:37 -08:00 committed by GitHub
parent 6daf42b28e
commit 8d0f09b1be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14795,7 +14795,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
} else {
PyObject *u = unicode_new_empty();
if (u == NULL) {
Py_DECREF(iter);
Py_XDECREF(iter);
return NULL;
}
return Py_BuildValue("N(N)", iter, u);