diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 10:35:11 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-12-21 10:35:11 (GMT) |
commit | 690e81f63f5cac9ca6fdb0ff90f1c43e98c9e510 (patch) | |
tree | fd99abf265e6e3bdad75113f25bf86fc490cd36e /Modules/_elementtree.c | |
parent | b0eb986eb236c41ebf098233940e038c7b993b9f (diff) | |
parent | 18f018ca12fccecaefc427927350538d5d37d51e (diff) | |
download | cpython-690e81f63f5cac9ca6fdb0ff90f1c43e98c9e510.zip cpython-690e81f63f5cac9ca6fdb0ff90f1c43e98c9e510.tar.gz cpython-690e81f63f5cac9ca6fdb0ff90f1c43e98c9e510.tar.bz2 |
Merge from 3.5.
Diffstat (limited to 'Modules/_elementtree.c')
-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 5937520..2cda98e 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) } /* -------------------------------------------------------------------- */ |