Skip to content

Commit 0faafd2

Browse files
authored
Fix process of reference count during GC
call PyObject_GC_UnTrack() in tp_dealloc() see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974
1 parent 9632d5a commit 0faafd2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zope/i18nmessageid/_zope_i18nmessageid_message.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ Message_clear(Message *self)
156156
static void
157157
Message_dealloc(Message *self)
158158
{
159+
PyObject_GC_UnTrack((PyObject *)self);
159160
Message_clear(self);
160161
PyUnicode_Type.tp_dealloc((PyObject*)self);
161162
}

0 commit comments

Comments
 (0)