From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 2AA198E78 for ; Tue, 17 Apr 2018 07:59:32 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id w3so15287013wrg.2 for ; Mon, 16 Apr 2018 22:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wa56eutHjI8Mq5lOg9jlhl/aY8IQfPyPyuwmQZEFSPI=; b=jvNNZF65akPjd+OQvtUIBbZ7bHsDJUcW7/u+8FERFk1PASHE7Q6IJns+SsvAeQX2Nm mkRt50mkODbfmNGJLlC4z0Dh9u10xsfMm6Ed2kEuaYgZCzDD7BvMA99fFY6oAzL7B09N QfmUmL8taGegB8CzNp5KaZEuaU2OXJvmk3DHgrnbBpB8oHd6hsVUSWc66oGO5i+XpvtF ltHB6aFFFSoP+h9wIeZQMFhMcUJwRaT/eev8YeQ8Mj4SJV0EkvFiT9uPSzhWu6ZmQA9x hDCmjBdDkIFR40/Lu6+RmRsSbLpBN+WLUOE8LRAaq2APGSu465l3QQWZDM9rz8xpIJV2 GeNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wa56eutHjI8Mq5lOg9jlhl/aY8IQfPyPyuwmQZEFSPI=; b=f/sbZeKM+VWo2K/KFFOkfiXofAe4Eou4pfhnyOJczaFxE73+AZuph+SRoEUBVq3CSc QDwtyrNXegBbT+Nj17nN7caah+N60oExzO94HgVyal38GWZCgtK+MdXDxo8gfA+1137+ ifewjM6LAW2tmfAEYlKSkkKKTjzS8N8tzPmMqXbX11q394IHTkFPjAjmfdoBqGFkWs6+ Fwa6mn+9f1T86BoPh/mdIjhAIhqkZ8EmS/gIMnXZRsTrqbpgD1snxlI8plWmMFW+Mw2g bV/Vy4L2Je4iAw5WsXt9r8kHvRr6HfNJlHolkoL9+uRG7y9jk8mk9cSJMh3iHYbReLVw DulA== X-Gm-Message-State: ALQs6tD0sCvkJA18/0LpzGufNfD4Y9tmbidOs5minUYKLNH0IvLCtxGs BPtWzkJi6IGGPh7KxjIIigV/NbXL X-Google-Smtp-Source: AIpwx4+w4lDW+I0rRpThiLFpre4Lm4p+Z8eeJAZNCu0Tb18JYDrA6+6+ChRMxu8+ha5QgIekJMWfcQ== X-Received: by 10.28.71.155 with SMTP id m27mr735462wmi.126.1523944771686; Mon, 16 Apr 2018 22:59:31 -0700 (PDT) Received: from localhost.localdomain (176.122.150.126.16clouds.com. [176.122.150.126]) by smtp.gmail.com with ESMTPSA id b47sm12156196wrg.13.2018.04.16.22.59.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Apr 2018 22:59:30 -0700 (PDT) From: Yangchao Zhou To: dev@dpdk.org Cc: alejandro.lucero@netronome.com Date: Tue, 17 Apr 2018 13:59:08 +0800 Message-Id: <1523944748-13334-1-git-send-email-zhouyates@gmail.com> X-Mailer: git-send-email 1.7.1 Subject: [dpdk-dev] [PATCH] net/nfp: fix possible resource leak X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 05:59:32 -0000 Signed-off-by: Yangchao Zhou --- drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c index ad6ce72..f2fcc4a 100644 --- a/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c +++ b/drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c @@ -816,6 +816,7 @@ struct nfp6000_area_priv { if (fscanf(fp, "0x%lx 0x%lx 0x%lx", &start, &end, &flags) == 0) { printf("error reading resource file for bar size\n"); + fclose(fp); return -1; } -- 1.7.1