From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by dpdk.org (Postfix) with ESMTP id BA2F758D4 for ; Fri, 23 Sep 2016 04:06:40 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id n24so4497238pfb.3 for ; Thu, 22 Sep 2016 19:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Gmeh9pRTvfRytZ5UbYmdbAC/2pan03NkYdYcGWt+LII=; b=CwaAbemox/xmX91JSvMwtJMNwDtAkN0aeMGJTBI7ZUjBMj6cLLzWpUt6VD0WzWI0nJ /Q/5N3Vap2y54iJahCU+Wmh5loPyeT6ykmQo4GZjxViUT9EeKgFvRYMmVRxfN8YzqAUN AnQDJ9Xb1D5rUzlrKQSxQqQM1cJSljhi4j//06qhncWFdvdjUqaLulBZ5h04OCB6+BOc El8EqBcydu4ISug35CVKO1I5xu5G62mYAZZ+EYfjSuQ9NxQkG2iGW3b4U08prUQ9Hpx3 OBCxHiwiNVLT557LKhOiHPBjc/mkDEfBsqGh2MiEJplu3a99IeWL1WmNVKxOBf5S9iWh mTgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Gmeh9pRTvfRytZ5UbYmdbAC/2pan03NkYdYcGWt+LII=; b=GcKbbKNpTd1MOni5RtHs6MD07WbwFqRU2Cob+WjiyVD2nD8RZN7SJSc0CXm0mqkXRz c8XSYrTjitq771+UmPAkxA24EhsknNedS7pCuuV8fqUjG4r1dpmIL9ZQKqpRojfAYilw C8hUVpbH2xGovCKXKDytUYsvkMg596me/5P1VjKue4p0zF07BscYALwfRpe4mzXzoYDY PRTWwo03cwE3egkoHH/gbS5yMPixf+rAQWEoVvOY3Cx+xc/zVnSLwT8mKhkCYTKaWeqh 84SQojMn5WwIyLjh3a1ZToNb5ZkY4R9a92fuadv9gSZJ8HwGGbcIsoif+lsZb0jAsQed VV6A== X-Gm-Message-State: AE9vXwOafyaNT7kIQZqVa63ZuZJiRj+2dJOaBP+NyTiKn1V8etKWJdYy+XTd0tdLVPZPfw== X-Received: by 10.98.70.132 with SMTP id o4mr8658728pfi.132.1474596400054; Thu, 22 Sep 2016 19:06:40 -0700 (PDT) Received: from localhost.localdomain ([211.157.188.187]) by smtp.gmail.com with ESMTPSA id xn11sm6790313pac.38.2016.09.22.19.06.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2016 19:06:39 -0700 (PDT) From: zhouyangchao To: david.marchand@6wind.com Cc: dev@dpdk.org, zhouyangchao Date: Fri, 23 Sep 2016 10:06:49 +0800 Message-Id: <1474596409-3501-1-git-send-email-zhouyates@gmail.com> X-Mailer: git-send-email 1.7.1 Subject: [dpdk-dev] [PATCH] pci:fix missing free 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, 23 Sep 2016 02:06:41 -0000 Signed-off-by: zhouyangchao --- lib/librte_eal/common/eal_common_pci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c index 7248c38..eb44998 100644 --- a/lib/librte_eal/common/eal_common_pci.c +++ b/lib/librte_eal/common/eal_common_pci.c @@ -378,6 +378,7 @@ rte_eal_pci_detach(const struct rte_pci_addr *addr) goto err_return; TAILQ_REMOVE(&pci_device_list, dev, next); + free(dev); return 0; } return -1; -- 1.7.1