From 3927f5d35745b0ef517d78e92cc0280eee5189ed Mon Sep 17 00:00:00 2001 From: Aleksandr Dovydenkov Date: Mon, 23 Mar 2026 17:37:52 +0300 Subject: [PATCH] Close file before return The mono_set_bisect_methods function opens a file and never closes it. --- src/mono/mono/mini/mini-runtime.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/mono/mini/mini-runtime.c b/src/mono/mono/mini/mini-runtime.c index 7cf63847ff61b9..7c0aad9090a041 100644 --- a/src/mono/mono/mini/mini-runtime.c +++ b/src/mono/mono/mini/mini-runtime.c @@ -3156,6 +3156,7 @@ mono_set_bisect_methods (guint32 opt, const char *method_list_filename) g_hash_table_insert (bisect_methods_hash, g_strdup (method_name), GINT_TO_POINTER (1)); } g_assert (feof (file)); + fclose(file); } gboolean mono_do_single_method_regression = FALSE;