Skip to content

gh-150077:Fix fileobj leak in tarfile.TarFile.zstopen on BaseException#150080

Merged
ethanfurman merged 5 commits into
python:mainfrom
lpyu001:fix-tarfile-exception
Jul 15, 2026
Merged

gh-150077:Fix fileobj leak in tarfile.TarFile.zstopen on BaseException#150080
ethanfurman merged 5 commits into
python:mainfrom
lpyu001:fix-tarfile-exception

Conversation

@lpyu001

@lpyu001 lpyu001 commented May 19, 2026

Copy link
Copy Markdown
Contributor

@lpyu001 lpyu001 requested a review from ethanfurman as a code owner May 19, 2026 11:52
@lpyu001 lpyu001 changed the title gh-150077:fix tarfile- uses except Exception: and leaks fileobj on BaseException gh-150077:Fix fileobj leak in tarfile.TarFile.zstopen on BaseException May 19, 2026
Comment thread Lib/test/test_tarfile.py Outdated
Comment thread Lib/test/test_tarfile.py Outdated
Comment thread Misc/NEWS.d/next/Library/2026-05-19-18-25-00.gh-issue-150077.zstopen-close.rst Outdated
@lpyu001

lpyu001 commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I’ve updated it based on your comments @sobolevn

@lpyu001

lpyu001 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

a minor change. If there are no issues, could we merge it? @sobolevn

@ethanfurman ethanfurman merged commit 681477d into python:main Jul 15, 2026
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants