]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-129726: Break `gzip.GzipFile` reference loop (#130055)
authorCody Maloney <cmaloney@users.noreply.github.com>
Fri, 28 Feb 2025 08:09:24 +0000 (00:09 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Feb 2025 08:09:24 +0000 (09:09 +0100)
commit7f39137662f637518a74228286e7ec675fa4e27d
tree0bbe8f9f2cf6c7a6bfc5ec0d167fd9ff9add5de1
parente41981704f0a6adb58c3e258b4226619521ce03c
gh-129726: Break `gzip.GzipFile` reference loop (#130055)

A reference loop was resulting in the `fileobj` held by the `GzipFile`
being closed before the `GzipFile`.

The issue started with gh-89550 in 3.12, but was hidden in most cases
until 3.13 when gh-62948 made it more visible.
Lib/gzip.py
Lib/test/test_gzip.py
Misc/NEWS.d/next/Library/2025-02-12-12-38-24.gh-issue-129726.jB0sxu.rst [new file with mode: 0644]