[Resource Leak] Missing closing files in testing/selftests/vm/mlock2

From: Ryan Cai
Date: Wed Dec 29 2021 - 22:17:42 EST


Dear Kernel maintainers,
 1. In testing/selftests/vm/mlock2, the file opened at Line 39 may not closed when going to Line 65.
Location: https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/tools/testing/selftests/vm/mlock2.h#L37-L49

Can I send I a patch?

Best,
Ryan