[Resource Leak] Missing closing files in tools/bpf/bpf_asm.c

From: Ryan Cai
Date: Wed Dec 29 2021 - 22:40:47 EST


Dear Kernel maintainers,
1. In tools/bpf/bpf_asm.c, the file opened at Line 40 may not closed within the function?
Location: https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5c4c173d3639d4772966/tools/bpf/bpf_asm.c#L40-L49

Should it be a bug? I can send patches for these.

Best,
Ryan