Ensure zlib inflateEnd is called

This commit is contained in:
Matt Nadareski
2024-03-25 21:34:38 -04:00
parent 24a73e8bfd
commit cd0863ac56
2 changed files with 3 additions and 1 deletions

View File

@@ -245,6 +245,7 @@ namespace BinaryObjectScanner.FileType
ZLib.inflateInit_(zstream, ZLib.zlibVersion(), compressedData.Length);
int zret = ZLib.inflate(zstream, 1);
ZLib.inflateEnd(zstream);
}
}
}

View File

@@ -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