[aot] Fix a few memory leaks (#13514)
commit60221d88d517cf2140b25b2846dbfac6625cc541
authorAleksey Kliger (λgeek) <akliger@gmail.com>
Wed, 20 Mar 2019 15:50:25 +0000 (20 11:50 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 20 Mar 2019 15:50:25 +0000 (20 16:50 +0100)
tree79edddb0100956c6dd376a9ac888f3bc2caa42e5
parent242596b243954a0dd43b5d761eaa92a54f538e6d
[aot] Fix a few memory leaks (#13514)

1. aot-compiler: don't leak `MonoCustomAttrInfo`

2. aot-runtime: don't leak sigs when decoding wrapper references.  All of these cases we decode a sig (which uses malloc), and then call some method that immediately calls `mini_get_underlying_signature` which dups the sig, so the one from the decode isn't needed anymore.
mono/mini/aot-compiler.c
mono/mini/aot-runtime.c