[threads] Fix leak of gchandle to MonoInternalThread
commit1e3fb99fa35bcd586e846723a74209e980e9f911
authorLudovic Henry <ludovic@xamarin.com>
Fri, 8 Dec 2017 00:37:32 +0000 (7 19:37 -0500)
committerLudovic Henry <ludovic@xamarin.com>
Tue, 12 Dec 2017 21:41:51 +0000 (12 16:41 -0500)
tree54ff7ae94e3d88931fc655573e7c233bf5438dc7
parentdd34edb9076b05cefd37b53bb8f0fb1b8f1884a3
[threads] Fix leak of gchandle to MonoInternalThread

Fixes https://github.com/mono/mono/issues/6169
mono/metadata/threads.c
mono/tests/Makefile.am
mono/tests/threads-leak.cs [new file with mode: 0644]