Re: [PATCH v2] selftests/rtc:Fix a resource leak

From: Shuah Khan
Date: Wed Jul 10 2024 - 12:00:30 EST


On 7/10/24 01:55, Alexandre Belloni wrote:
On 10/07/2024 00:43:09-0700, Zhu Jun wrote:
The opened file should be closed before exit, otherwise resource leak
will occur that this problem was discovered by code reading

The question is still why should it be closed before exit as it will be
closed on exit?


Zhu Jun,

+1 on this. I have responded to your other patches that do the same
in other tests. There is no need to make such changes.

thanks,
-- Shuah