From ba967982f6e3f3a643f323c4e93f0dc9769ea040 Mon Sep 17 00:00:00 2001 From: Caohongtao Date: Mon, 2 Sep 2024 02:00:29 +0000 Subject: [PATCH] Need close the file if you used open() please close the file Signed-off-by: Caohongtao --- scripts/dump_new_kabis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dump_new_kabis.py b/scripts/dump_new_kabis.py index 19b20884c..de8afba17 100755 --- a/scripts/dump_new_kabis.py +++ b/scripts/dump_new_kabis.py @@ -122,6 +122,7 @@ def get_not_in_kabi_whitelist(funcs, arch): kabi_file = open(kabi_file_path, 'r') kabis = kabi_file.readlines() not_in_funcs = [] + kabi_file.close() for func in iter(funcs): if " " + func + "\n" not in kabis: not_in_funcs.append(func) -- Gitee