From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id C90272B8C for ; Fri, 4 Nov 2016 07:29:27 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC46716; Thu, 3 Nov 2016 23:29:26 -0700 (PDT) Received: from Overdrive.shanghai.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C994E3F25D; Thu, 3 Nov 2016 23:29:25 -0700 (PDT) From: Jianbo Liu To: dev@dpdk.org, chaozhu@linux.vnet.ibm.com, viktorin@rehivetech.com Cc: Jianbo Liu Date: Fri, 4 Nov 2016 11:59:08 +0530 Message-Id: <1478240949-13487-1-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 2.4.11 Subject: [dpdk-dev] [PATCH 1/2] arch/arm: fix file descriptors leakage when getting CPU features X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 06:29:28 -0000 Signed-off-by: Jianbo Liu --- lib/librte_eal/common/arch/arm/rte_cpuflags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/arch/arm/rte_cpuflags.c b/lib/librte_eal/common/arch/arm/rte_cpuflags.c index 23240ef..79160a6 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); } /* -- 2.4.11