diff --git a/Netch/Utils/Utils.cs b/Netch/Utils/Utils.cs index 3b11746a..2c1fad08 100644 --- a/Netch/Utils/Utils.cs +++ b/Netch/Utils/Utils.cs @@ -105,7 +105,7 @@ namespace Netch.Utils try { var sha256 = SHA256.Create(); - var fileStream = File.OpenRead(filePath); + using var fileStream = File.OpenRead(filePath); return sha256.ComputeHash(fileStream).Aggregate(string.Empty, (current, b) => current + b.ToString("x2")); } catch