diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 10:36:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 10:36:29 (GMT) |
commit | 47bdc40352b06cc28ed91c988dbd65bb3b298471 (patch) | |
tree | 590a2572c3292da1a3fd3cb595555fa5600cabc3 /Modules | |
parent | b211068f5c8e2535ab2dd7f4c43325bbf5b30fad (diff) | |
parent | 690e81f63f5cac9ca6fdb0ff90f1c43e98c9e510 (diff) | |
download | cpython-47bdc40352b06cc28ed91c988dbd65bb3b298471.zip cpython-47bdc40352b06cc28ed91c988dbd65bb3b298471.tar.gz cpython-47bdc40352b06cc28ed91c988dbd65bb3b298471.tar.bz2 |
Merge from 3.6.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_elementtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_elementtree.c b/Modules/_elementtree.c index 9e6f63b..5d63913 100644 --- a/Modules/_elementtree.c +++ b/Modules/_elementtree.c @@ -626,6 +626,7 @@ static void element_dealloc(ElementObject* self) { PyObject_GC_UnTrack(self); + Py_TRASHCAN_SAFE_BEGIN(self) if (self->weakreflist != NULL) PyObject_ClearWeakRefs((PyObject *) self); @@ -636,6 +637,7 @@ element_dealloc(ElementObject* self) RELEASE(sizeof(ElementObject), "destroy element"); Py_TYPE(self)->tp_free((PyObject *)self); + Py_TRASHCAN_SAFE_END(self) } /* -------------------------------------------------------------------- */ |