[counters] Fix file handle leak in cpu_load ()
commitb2b0d6c00f3c8fa21254d3d2a1b55304e6726c9a
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 2 Dec 2014 04:41:00 +0000 (2 05:41 +0100)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 2 Dec 2014 04:41:00 +0000 (2 05:41 +0100)
tree31d74addb75548c43870d22de0e12587192f0f21
parentc9e3a47dd7865617bfcb0f43e9bf7939d3b98858
[counters] Fix file handle leak in cpu_load ()

If a premature return is taken, the FILE pointer f is not fclose()-ed.

Report and fix provided by Markus Beth on the mailing list: http://lists.ximian.com/pipermail/mono-devel-list/2014-December/042459.html
mono/utils/mono-counters.c