Re: [PATCH] kexec-tools: fix leak FILE pointer.

2022-03-30 Thread Simon Horman
On Wed, Mar 30, 2022 at 07:09:51PM +0800, Lichen Liu wrote: > Close fp if file size is smaller than 13 bytes. > > Signed-off-by: Lichen Liu Thanks, applied. ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/k

[PATCH] kexec-tools: fix leak FILE pointer.

2022-03-30 Thread Lichen Liu
Close fp if file size is smaller than 13 bytes. Signed-off-by: Lichen Liu --- kexec/lzma.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kexec/lzma.c b/kexec/lzma.c index f27cfe2..2fc07e6 100644 --- a/kexec/lzma.c +++ b/kexec/lzma.c @@ -170,8 +170,11 @@ int is_lzma_file