summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/structseq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index cded877..092e163 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -553,6 +553,9 @@ _PyStructSequence_FiniType(PyTypeObject *type)
// Undo Py_INCREF(type) of _PyStructSequence_InitType().
// Don't use Py_DECREF(): static type must not be deallocated
Py_SET_REFCNT(type, 0);
+#ifdef Py_REF_DEBUG
+ _Py_RefTotal--;
+#endif
// Make sure that _PyStructSequence_InitType() will initialize
// the type again