[PATCH] zlib: fix resource leak when gzdirect failed

Simon Horman horms at verge.net.au
Mon Nov 30 11:37:31 EST 2020


On Mon, Nov 30, 2020 at 02:41:25PM +0800, qiuguorui1 wrote:
> In function zlib_decompress_file, when gzdirect(fp) fails,
> we should gzclose fp before return.
> 
> Fixes: d606837b56d46 ("Fix zlib/lzma decompression.")
> Signed-off-by: qiuguorui1 <qiuguorui1 at huawei.com>

Thanks, applied.



More information about the kexec mailing list