summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-03-08 19:03:50 (GMT)
committerGitHub <noreply@github.com>2023-03-08 19:03:50 (GMT)
commitcbb0aa71d040022db61390380b8aebc7c04f3275 (patch)
tree9ff9e2f3141fbd5bdc2446144955722a7d63afa9 /Objects/structseq.c
parent11a2c6ce516b24b2435cb627742a6c4df92d411c (diff)
downloadcpython-cbb0aa71d040022db61390380b8aebc7c04f3275.zip
cpython-cbb0aa71d040022db61390380b8aebc7c04f3275.tar.gz
cpython-cbb0aa71d040022db61390380b8aebc7c04f3275.tar.bz2
gh-102304: Consolidate Direct Usage of _Py_RefTotal (gh-102514)
This simplifies further changes to _Py_RefTotal (e.g. make it atomic or move it to PyInterpreterState). https://github.com/python/cpython/issues/102304
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r--Objects/structseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index 100ccfe..c20962e 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -592,7 +592,7 @@ _PyStructSequence_FiniType(PyTypeObject *type)
// Don't use Py_DECREF(): static type must not be deallocated
Py_SET_REFCNT(type, 0);
#ifdef Py_REF_DEBUG
- _Py_RefTotal--;
+ _Py_DecRefTotal();
#endif
// Make sure that _PyStructSequence_InitType() will initialize