eal/arm: fix file descriptor leak when getting CPU features
authorJianbo Liu <jianbo.liu@linaro.org>
Fri, 4 Nov 2016 09:46:42 +0000 (15:16 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Nov 2016 21:41:51 +0000 (22:41 +0100)
commita1ed637873a748cc73867db00b2e3c120571ff59
treeb7126d4c3c6e3b7e542e145f08696095fb706340
parente65b5069fddf9dd0a60879ef7570c806585d6916
eal/arm: fix file descriptor leak when getting CPU features

Close the file descriptor after finish using it.

Fixes: b94e5c94 ("eal/arm: add CPU flags for ARMv7")
Fixes: 97523f82 ("eal/arm: add CPU flags for ARMv8")

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