From 5ffdc6535430c21e5483f319ea02085fdbf2c111 Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Wed, 25 Mar 2020 11:09:33 -0400 Subject: [PATCH] [loader] Clear filename when debugging assembly unloading (#34037) --- src/mono/mono/metadata/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mono/mono/metadata/image.c b/src/mono/mono/metadata/image.c index c7b309d60b8..35ec244b6cb 100644 --- a/src/mono/mono/metadata/image.c +++ b/src/mono/mono/metadata/image.c @@ -2402,6 +2402,8 @@ mono_image_close_except_pools (MonoImage *image) char *old_name = image->name; image->name = g_strdup_printf ("%s - UNLOADED", old_name); g_free (old_name); + g_free (image->filename); + image->filename = NULL; } else { g_free (image->name); g_free (image->filename); -- 2.34.1