Skip to content

Commit 390e6e1

Browse files
committed
Revert "[metadata] Fix leaks when handling a few attributes (#16675) (#16851)"
This reverts commit a6b5187.
1 parent 459dd92 commit 390e6e1

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

mono/metadata/marshal-ilgen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ get_fixed_buffer_attr (MonoClassField *field, MonoType **out_etype, int *out_len
182182
return FALSE;
183183
*out_etype = (MonoType*)typed_args [0];
184184
*out_len = *(gint32*)typed_args [1];
185-
g_free (typed_args [1]);
186185
g_free (typed_args);
187186
g_free (named_args);
188187
g_free (arginfo);

mono/metadata/marshal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,9 +3907,7 @@ mono_marshal_get_managed_wrapper (MonoMethod *method, MonoClass *delegate_klass,
39073907
} else {
39083908
g_assert_not_reached ();
39093909
}
3910-
g_free (named_args [i]);
39113910
}
3912-
g_free (typed_args [0]);
39133911
g_free (typed_args);
39143912
g_free (named_args);
39153913
g_free (arginfo);

0 commit comments

Comments
 (0)