Skip to content

Commit 64d3715

Browse files
gh-101765: unicodeobject: use Py_XDECREF correctly (GH-102283)
(cherry picked from commit 8d0f09b) Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent eb55659 commit 64d3715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -15768,7 +15768,7 @@ unicodeiter_reduce(unicodeiterobject *it, PyObject *Py_UNUSED(ignored))
1576815768
} else {
1576915769
PyObject *u = (PyObject *)_PyUnicode_New(0);
1577015770
if (u == NULL) {
15771-
Py_DECREF(iter);
15771+
Py_XDECREF(iter);
1577215772
return NULL;
1577315773
}
1577415774
return Py_BuildValue("N(N)", iter, u);

0 commit comments

Comments
 (0)