[runtime] Cleanup MonoError after mono_runtime_try_invoke
commitb8958da98102f9de5509ed3f87eb5941108c18b9
authorAleksey Kliger <aleksey@xamarin.com>
Tue, 9 Feb 2016 17:10:26 +0000 (9 12:10 -0500)
committerAleksey Kliger <aleksey@xamarin.com>
Tue, 9 Feb 2016 17:15:15 +0000 (9 12:15 -0500)
tree2715efdd9b16a88c6d11ae537de8afd1cc435ccc
parentcaea43b94ef4b4bbb32d7166dd3aa5da508e7655
[runtime] Cleanup MonoError after mono_runtime_try_invoke

If both an exception exc is set and the MonoError is not ok, we could
leak the MonoError memory.  Explicitly cleanup.
mono/metadata/object.c