[metadata] Break up mono_metadata_parse_type_internal (#60725)
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Tue, 26 Oct 2021 02:39:13 +0000 (22:39 -0400)
committerGitHub <noreply@github.com>
Tue, 26 Oct 2021 02:39:13 +0000 (22:39 -0400)
commitbf885a32fc30fc3da186a6ea032e832a2eed7f34
treec8045d7090651c20f2492d0893be8d9c5acb7d10
parent13d6458357aaa83cba675552ec8baef084e88447
[metadata] Break up mono_metadata_parse_type_internal (#60725)

* [metadata] Break up mono_metadata_parse_type_internal

Separate the type allocation and cleanup logic from the main decoding logic and
from the cached instance lookup.

Also free the allocated memory, if any, in case of decoding errors.
src/mono/mono/metadata/metadata.c