SIGN IN SIGN UP

Issue #14432: Generator now clears the borrowed reference to the thread state

Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
V
Victor Stinner committed
131051079351859a5451b873667b489e2a9e9f2a
Parent: da12ada