Fix process leak in process enumeration. Dispose rejected ones. (#10187)
commit2fbd56f4377102a0997b9683768bc17d1ab3c59a
authormonojenkins <jo.shields+jenkins@xamarin.com>
Mon, 20 Aug 2018 12:39:16 +0000 (20 14:39 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 20 Aug 2018 12:39:15 +0000 (20 14:39 +0200)
tree9dcf5cbb46ceb49bd962e7cdebe9497b52035813
parentbaf5e7d9e9f22a5778caf247213385fc466030d1
Fix process leak in process enumeration. Dispose rejected ones. (#10187)

This https://github.com/mono/mono/issues/10143 and fix is from there.

I considered nulling the array elements as I go, and then the tail,
to help the GC, but does it help actually? I suspect not.
mcs/class/System/System.Diagnostics/Process.cs