WSL2-Linux-Kernel/tools/power
Samasth Norway Ananda 9a16a0d033 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()
[ Upstream commit f85450f134f0b4ca7e042dc3dc89155656a2299d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:01:43 +02:00
..
acpi ACPICA: Tree-wide: fix various typos and spelling mistakes 2021-04-07 19:09:00 +02:00
cpupower cpupower: Make TSC read per CPU for Mperf monitor 2023-05-24 17:36:49 +01:00
pm-graph pm-graph: Fix typo "accesible" 2021-03-22 15:27:17 +01:00
x86 tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:01:43 +02:00