[metadata] Fix leaks when handling a few attributes (#16675)
commite49be5b9ec63e526d6bec04a957cbe48753b651b
authorVlad Brezae <brezaevlad@gmail.com>
Fri, 6 Sep 2019 07:31:39 +0000 (6 10:31 +0300)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2019 07:31:39 +0000 (6 10:31 +0300)
tree8ce3dbd65277c2fbc534860950f0ee8b3a2d3c4e
parentc23a8906f3e0d8572a6c28b06e8a85f3d3c0ea8c
[metadata] Fix leaks when handling a few attributes (#16675)

Callers of mono_reflection_create_custom_attr_data_args_noalloc were leaking some of the returned information. Accessed attributes are FixedBufferAttribute and UnmanagedFunctionPointerAttribute.
mono/metadata/marshal-ilgen.c
mono/metadata/marshal.c
mono/mini/debugger-agent.c