power: fix resource leak
authorLiang Ma <liang.j.ma@intel.com>
Mon, 8 Apr 2019 16:19:16 +0000 (17:19 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 9 May 2019 19:07:55 +0000 (21:07 +0200)
commit3d45c3b0f5e10cb426b2cc8eb816af32d8d6e538
tree4a1099208a04c9240275c20f8bc43e70a140290b
parentbfbc3a50416419d79c9cbe7868d1e9901919c346
power: fix resource leak

Fix the resource leaking issue

Coverity issue: 337668
Fixes: b60fd5f8b1ce8f0a2c ("power: add bit for high frequency cores")

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