Re: [PATCH v1] selftests/media_tests: fix a resource leak
From: Dan Carpenter
Date: Tue Nov 21 2023 - 04:42:42 EST
On Tue, Nov 21, 2023 at 01:32:38AM -0800, Zhu Jun wrote:
> From: zhujun2 <zhujun2@xxxxxxxxxxxxxxxxxxxx>
>
> The opened file should be closed in main(), otherwise resource
> leak will occur that this problem was discovered by code reading
>
> Signed-off-by: zhujun2 <zhujun2@xxxxxxxxxxxxxxxxxxxx>
> ---
>
> Hi Dan Carpenter
>
> I believe that the Linux kernel code is sacred and should strictly adhere to C code conventions
>
*sigh*. You do you, I guess. This patch is pointless but I don't care
whether it's merged or not.
regards,
dan carpenter