Skip to content

Commit

Permalink
Merge pull request #22 from zopefoundation/issue21
Browse files Browse the repository at this point in the history
call PyObject_GC_UnTrack() in tp_dealloc()
  • Loading branch information
stephan-hof committed Sep 11, 2017
2 parents e509c01 + 11c621e commit a4a7cee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -4,6 +4,9 @@ Changelog
4.5.0 (unreleased)
------------------

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


4.4.2 (2017-05-12)
------------------
Expand Down
1 change: 1 addition & 0 deletions src/Acquisition/_Acquisition.c
Expand Up @@ -415,6 +415,7 @@ Wrapper_clear(Wrapper *self)
static void
Wrapper_dealloc(Wrapper *self)
{
PyObject_GC_UnTrack(OBJECT(self));
Wrapper_clear(self);
Py_TYPE(self)->tp_free(OBJECT(self));
}
Expand Down

0 comments on commit a4a7cee

Please sign in to comment.