eal/ppc: fix file descriptor leak when getting CPU features
authorJianbo Liu <jianbo.liu@linaro.org>
Fri, 4 Nov 2016 09:46:43 +0000 (15:16 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Nov 2016 21:42:06 +0000 (22:42 +0100)
commit545f16daf6867640261fe7bd263c777a8c61a3c1
treeaace703774ad30cf5045fa866586a1d491516630
parenta1ed637873a748cc73867db00b2e3c120571ff59
eal/ppc: fix file descriptor leak when getting CPU features

Close the file descriptor after finish using it.

Fixes: 9ae15538 ("eal/ppc: cpu flag checks for IBM Power")

Signed-off-by: Jianbo Liu <jianbo.liu@linaro.org>
Acked-by: Jan Viktorin <viktorin@rehivetech.com>
lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c