SIGN IN SIGN UP

gh-111784: Fix two segfaults in the elementtree module (GH-113405)

First fix resolve situation when pyexpat module (which contains expat_CAPI
capsule) deallocates before _elementtree, so we need to hold a strong
reference to pyexpat module to.

Second fix resolve situation when module state is deallocated before
deallocation of XMLParser instances, which uses module state to clear
some stuff.
K
Kirill Podoprigora committed
894f0e573d9eb49cd5864c44328f10a731852dab
Parent: 050783c
Committed by GitHub <noreply@github.com> on 12/24/2023, 8:57:41 AM