summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-02-26 22:45:37 (GMT)
committerGitHub <noreply@github.com>2023-02-26 22:45:37 (GMT)
commit8d0f09b1beafd95763a5da53acc58dac0bd63a53 (patch)
tree60632cb06c68c2901ddc04170e0b37796791c8fb /Objects/unicodeobject.c
parent6daf42b28e1c6d5f0c1a6350cfcc382789e11293 (diff)
downloadcpython-8d0f09b1beafd95763a5da53acc58dac0bd63a53.zip
cpython-8d0f09b1beafd95763a5da53acc58dac0bd63a53.tar.gz
cpython-8d0f09b1beafd95763a5da53acc58dac0bd63a53.tar.bz2
gh-101765: unicodeobject: use Py_XDECREF correctly (#102283)
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 2f4c3d3..1ba3042 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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);