Skip to content

Commit

Permalink
Dispose ZipArchive after usage in ExtractArchiveToDirectory (#41449)
Browse files Browse the repository at this point in the history
  • Loading branch information
omajid authored Jun 7, 2024
1 parent fd6042c commit 9775942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Installer/core-sdk-tasks/ExtractArchiveToDirectory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public override bool Execute()
// Partial archive extraction
if (isZipArchive)
{
var zip = new ZipArchive(File.OpenRead(SourceArchive));
using var zip = new ZipArchive(File.OpenRead(SourceArchive));
string loc = DestinationDirectory;
foreach (var entry in zip.Entries)
{
Expand Down

0 comments on commit 9775942

Please sign in to comment.