mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #1139] Fix BinaryReader disposal in TarArchive.IsTarFileAsync #1578
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?
Original Pull Request: https://github.com/adamhathcock/sharpcompress/pull/1139
State: closed
Merged: No
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.