linux/tools/power/x86/x86_energy_perf_policy
Samasth Norway Ananda f85450f134 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()
In function get_pkg_num() if fopen_or_die() succeeds it returns a file
pointer to be used. But fclose() is never called before returning from
the function.

Signed-off-by: Samasth Norway Ananda <samasth.norway.ananda@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2024-02-22 20:05:28 +01:00
..
Makefile tools/power/x86: Enable compiler optimisations and Fortify by default 2019-08-31 14:48:34 -04:00
x86_energy_perf_policy.8 tools/power: Fix typo in man page 2019-08-31 14:48:34 -04:00
x86_energy_perf_policy.c tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-02-22 20:05:28 +01:00