mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 05:25:03 +00:00
[PR #1139] [CLOSED] Fix BinaryReader disposal in TarArchive.IsTarFileAsync #1574
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/1139
Author: @Copilot
Created: 1/16/2026
Status: ❌ Closed
Base:
adam/async-creation← Head:copilot/sub-pr-1132-again📝 Commits (1)
a9664d8Initial plan📄 Description
The
IsTarFileAsyncmethod creates aBinaryReaderon line 177 but doesn't dispose it, causing a resource leak.Changes:
BinaryReaderin ausingstatement inTarArchive.IsTarFileAsyncto ensure proper disposalIsTarFilemethod on line 157💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.