Fix two memory leaks on ZSTD and LZ4 decompression

This commit is contained in:
Nardi Ivan 2021-09-08 13:33:31 +02:00 committed by Wireshark GitLab Utility
parent c58c106b30
commit 197b67cf8c
1 changed files with 6 additions and 0 deletions

View File

@ -1845,6 +1845,12 @@ file_close(FILE_T file)
if (file->size) {
#ifdef HAVE_ZLIB
inflateEnd(&(file->strm));
#endif
#ifdef HAVE_ZSTD
ZSTD_freeDCtx(file->zstd_dctx);
#endif
#ifdef USE_LZ4
LZ4F_freeDecompressionContext(file->lz4_dctx);
#endif
g_free(file->out.buf);
g_free(file->in.buf);