[runtime] Fix the freeing of BStr members in pinvoke. (#9184)
commit813588bd9fec001e74f451b0c094eaeb10c81200
authorZoltan Varga <vargaz@gmail.com>
Mon, 18 Jun 2018 15:14:54 +0000 (18 11:14 -0400)
committerLudovic Henry <luhenry@microsoft.com>
Mon, 18 Jun 2018 15:14:54 +0000 (18 11:14 -0400)
treeb2eea203e80b0562b0c27c5b90a57e2c660c0396
parentd5d116b78776b48002c2ad8f2b71afe2c074c7b7
[runtime] Fix the freeing of BStr members in pinvoke. (#9184)

Fixes https://github.com/mono/mono/issues/9010.
mono/metadata/marshal.c
mono/tests/libtest.c
mono/tests/marshal2.cs
mono/tests/pinvoke2.cs