Skip to content

Commit 61bae8d

Browse files
y-fujisaki2chi-kimura@xr.jp.nec.com
authored andcommitted
call PyObject_GC_UnTrack() in tp_dealloc()
see the following sites for details: * https://bugs.python.org/issue31095 * python/cpython#2974
1 parent e509c01 commit 61bae8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changelog
44
4.5.0 (unreleased)
55
------------------
66

7+
- Fix the extremely rare potential for a crash when the C extensions
8+
are in use. See `issue 21 <https://github.com/zopefoundation/Acquisition/issues/21>`_.
9+
710

811
4.4.2 (2017-05-12)
912
------------------

src/Acquisition/_Acquisition.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ Wrapper_clear(Wrapper *self)
415415
static void
416416
Wrapper_dealloc(Wrapper *self)
417417
{
418+
PyObject_GC_UnTrack(OBJECT(self));
418419
Wrapper_clear(self);
419420
Py_TYPE(self)->tp_free(OBJECT(self));
420421
}

0 commit comments

Comments
 (0)