-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[metadata] Break up mono_metadata_parse_type_internal #60725
Conversation
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.
Tagging subscribers to this area: @buyaa-n Issue DetailsSeparate 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.
|
Tagging subscribers to this area: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. Fixes the warning as well without regressing functionality. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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.
Motivated by #60675 /cc @am11