[2020-02][cominterop] Fix CCW memory leak (#21453)
commit5a3fe49fc57ed6e7794e47f5ddf2acded4ba3cd5
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Tue, 5 Apr 2022 11:57:07 +0000 (5 07:57 -0400)
committerGitHub <noreply@github.com>
Tue, 5 Apr 2022 11:57:07 +0000 (5 07:57 -0400)
tree55a754a7064b20bb35d35fe67dbe60a985fe3e52
parentadf1bc4335d710088c58e824b6027255096cc295
[2020-02][cominterop] Fix CCW memory leak (#21453)

Free the method builder after compiling the wrapper.

This is already fixed on mono/mono `main` as part of the refactoring in
https://github.com/mono/mono/pull/19768 (And that change was also propagated to
dotnet/runtime)
mono/metadata/cominterop.c