diff --git a/BinaryObjectScanner/FileType/SGA.cs b/BinaryObjectScanner/FileType/SGA.cs index 225ca2c8..3fa4f505 100644 --- a/BinaryObjectScanner/FileType/SGA.cs +++ b/BinaryObjectScanner/FileType/SGA.cs @@ -245,6 +245,7 @@ namespace BinaryObjectScanner.FileType ZLib.inflateInit_(zstream, ZLib.zlibVersion(), compressedData.Length); int zret = ZLib.inflate(zstream, 1); + ZLib.inflateEnd(zstream); } } } diff --git a/BinaryObjectScanner/Packer/CExe.cs b/BinaryObjectScanner/Packer/CExe.cs index 0be6ad4a..8a00a6c1 100644 --- a/BinaryObjectScanner/Packer/CExe.cs +++ b/BinaryObjectScanner/Packer/CExe.cs @@ -87,6 +87,7 @@ namespace BinaryObjectScanner.Packer ZLib.inflateInit_(zstream, ZLib.zlibVersion(), payload.Length); int zret = ZLib.inflate(zstream, 1); + ZLib.inflateEnd(zstream); } } @@ -107,7 +108,7 @@ namespace BinaryObjectScanner.Packer } } - // Otherwise, LZ is used via the Windows API + // Otherwise, LZ is used else { try