gh-113939: Frame clear, clear locals (#113940)

This commit is contained in:
Albert Zeyer 2024-01-31 20:14:44 +01:00 committed by GitHub
parent b905fad838
commit 78c254582b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,4 @@
frame.clear():
Clear frame.f_locals as well, and not only the fast locals.
This is relevant once frame.f_locals was accessed,
which would contain also references to all the locals.