Skip to content

Commit ea413ca

Browse files
[Mono][AOT] Add missing unlock in mono_aot_get_class_from_name if aot table_size == 0 (#122097)
Fixes #122096
1 parent 0d59ec0 commit ea413ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mono/mono/mini/aot-runtime.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2709,8 +2709,10 @@ mono_aot_get_class_from_name (MonoImage *image, const char *name_space, const ch
27092709
table_size = amodule->class_name_table [0];
27102710
table = amodule->class_name_table + 1;
27112711

2712-
if (table_size == 0)
2712+
if (table_size == 0) {
2713+
amodule_unlock (amodule);
27132714
return FALSE;
2715+
}
27142716

27152717
if (name_space [0] == '\0')
27162718
full_name = g_strdup_printf ("%s", name);

0 commit comments

Comments
 (0)