]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-124068: Fix reference leak with generators in the free-threaded build (#124069)
authorSam Gross <colesbury@gmail.com>
Sat, 14 Sep 2024 02:02:27 +0000 (22:02 -0400)
committerGitHub <noreply@github.com>
Sat, 14 Sep 2024 02:02:27 +0000 (22:02 -0400)
commitb02301fa5a543266ee310a6d98278d2b8e26d7b3
treec6e24188036f33d57f09ca183c3d02eb8f64cb82
parent38809171b8768517824fb62d48abe2cb0aff8429
gh-124068: Fix reference leak with generators in the free-threaded build (#124069)

If the generator is already cleared, then most fields in the
generator's frame are not valid other than f_executable. The invalid
fields may contain dangling pointers and should not be used.
Python/gc_free_threading.c