power: fix file descriptor leak
authorLiang Ma <liang.j.ma@intel.com>
Tue, 15 Jan 2019 10:01:37 +0000 (10:01 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 17 Jan 2019 18:20:02 +0000 (19:20 +0100)
commit7c06d9258ab8a33b4d5a6604726ebeae90d8537e
tree298ac38d7e8f6b67c82f8840d7928d29dcda86ae
parent566b4d7a968fa454ff7deab7c43216712878af30
power: fix file descriptor leak

Coverity issue: 328528
Fixes: e6c6dc0f96c8 ("power: add p-state driver compatibility")

Signed-off-by: Liang Ma <liang.j.ma@intel.com>
Reviewed-by: Lei Yao <lei.a.yao@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
lib/librte_power/power_pstate_cpufreq.c