From: Jianbo Liu Date: Fri, 4 Nov 2016 09:46:42 +0000 (+0530) Subject: eal/arm: fix file descriptor leak when getting CPU features X-Git-Tag: spdx-start~5404 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a1ed637873a748cc73867db00b2e3c120571ff59;p=dpdk.git 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 Acked-by: Jan Viktorin --- diff --git a/lib/librte_eal/common/arch/arm/rte_cpuflags.c b/lib/librte_eal/common/arch/arm/rte_cpuflags.c index 23240efd96..79160a60ce 100644 --- a/lib/librte_eal/common/arch/arm/rte_cpuflags.c +++ b/lib/librte_eal/common/arch/arm/rte_cpuflags.c @@ -148,6 +148,7 @@ rte_cpu_get_features(hwcap_registers_t out) out[REG_PLATFORM] = 0x0001; } } + close(auxv_fd); } /*