We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3c424 commit 66b77e0Copy full SHA for 66b77e0
Modules/pyexpat.c
@@ -1545,6 +1545,11 @@ xmlparse_clear(PyObject *op)
1545
xmlparseobject *self = xmlparseobject_CAST(op);
1546
clear_handlers(self, 0);
1547
Py_CLEAR(self->intern);
1548
+ // NOTE: We cannot call Py_CLEAR(self->parent) prior to calling
1549
+ // XML_ParserFree(self->itself) or a subparser (created via
1550
+ // XML_ExternalEntityParserCreate could lose its parent XML_Parser
1551
+ // while still making use of it internally.
1552
+ // https://github.com/python/cpython/issues/139400
1553
return 0;
1554
}
1555
0 commit comments