Fix two memory leaks on ZSTD and LZ4 decompression
This commit is contained in:
parent
c58c106b30
commit
197b67cf8c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue