Fix use of freed memory. (mono/mono#15660)
authorJay Krell <jaykrell@microsoft.com>
Tue, 16 Jul 2019 20:16:52 +0000 (13:16 -0700)
committerRyan Lucia <rylucia@microsoft.com>
Tue, 16 Jul 2019 20:16:52 +0000 (13:16 -0700)
commit0918188a45fe3796de0868658655d6a0ea5e0424
tree087cc8b06f0c2cb2af484fc28012bc7dc00a519c
parent434df5b15ed2f86e3166118d62890502110cb4c6
Fix use of freed memory. (mono/mono#15660)

Fix use of freed memory.
Move the free later, on the assumption that the free itself doesn't use memory now freed before it.
Found with Valgrind.

Commit migrated from https://github.com/mono/mono/commit/43f1a268045a1a3746bfd4a610b7b4874599aa38
src/mono/mono/mini/mini-runtime.c