From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yangchao Zhou Subject: [PATCH] pci:fix missing free Date: Thu, 29 Sep 2016 09:41:10 +0800 Message-ID: <1475113270-21983-1-git-send-email-zhouyates@gmail.com> References: <4622854.nVE6J4R6pe@xps13> Cc: dev@dpdk.org, david.marchand@6wind.com, Yangchao Zhou To: thomas.monjalon@6wind.com Return-path: Received: from mail-pa0-f67.google.com (mail-pa0-f67.google.com [209.85.220.67]) by dpdk.org (Postfix) with ESMTP id DB6672BA1 for ; Thu, 29 Sep 2016 03:40:55 +0200 (CEST) Received: by mail-pa0-f67.google.com with SMTP id r9so2055997paz.1 for ; Wed, 28 Sep 2016 18:40:55 -0700 (PDT) In-Reply-To: <4622854.nVE6J4R6pe@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Yangchao Zhou --- 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