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 B7D6F2B8C for ; Fri, 4 Nov 2016 07:29:28 +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 0753528; Thu, 3 Nov 2016 23:29:28 -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 1689B3F25D; Thu, 3 Nov 2016 23:29:26 -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:09 +0530 Message-Id: <1478240949-13487-2-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1478240949-13487-1-git-send-email-jianbo.liu@linaro.org> References: <1478240949-13487-1-git-send-email-jianbo.liu@linaro.org> Subject: [dpdk-dev] [PATCH 2/2] arch/ppc: 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:29 -0000 Signed-off-by: Jianbo Liu --- lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c b/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c index a8147c8..fcf96e0 100644 --- a/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c +++ b/lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c @@ -116,6 +116,7 @@ rte_cpu_get_features(hwcap_registers_t out) else if (auxv.a_type == AT_HWCAP2) out[REG_HWCAP2] = auxv.a_un.a_val; } + close(auxv_fd); } /* -- 2.4.11