[PATCH 5.4 180/215] tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num()