From 47c7af399193a847ca622d9490831b2eaaa4bc73 Mon Sep 17 00:00:00 2001 From: Aleksandr Dovydenkov Date: Mon, 23 Mar 2026 18:09:49 +0300 Subject: [PATCH] Fix memory leak of offset_to_bb_hash The hash table is created and filled with values. Add g_hash_table_destroy to free memory. Signed-off-by: Aleksandr Dovydenkov Found by Linux Verification Center (linuxtesting.org) with SVACE. --- src/mono/mono/mini/helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/mono/mini/helpers.c b/src/mono/mono/mini/helpers.c index e7d3dac0d6ce03..dd4c02c2d09489 100644 --- a/src/mono/mono/mini/helpers.c +++ b/src/mono/mono/mini/helpers.c @@ -182,6 +182,7 @@ MONO_DISABLE_WARNING(4127) /* conditional expression is constant */ if (cindex == 64) cindex = 0; } + g_hash_table_destroy(offset_to_bb_hash); fprintf (ofd, "\n"); fclose (ofd);