Skip to content

Commit 40aa0a9

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 d63e02c commit 40aa0a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zope/container/_zope_proxy_proxy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ wrap_iternext(PyObject *self)
182182
static void
183183
wrap_dealloc(PyObject *self)
184184
{
185+
PyObject_GC_UnTrack(self);
185186
(void) wrap_clear(self);
186187
self->ob_type->tp_free(self);
187188
}

0 commit comments

Comments
 (0)