From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 645563239 for ; Mon, 13 Jul 2015 15:04:19 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 13 Jul 2015 06:04:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,462,1432623600"; d="scan'208";a="605208208" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 13 Jul 2015 06:04:16 -0700 Received: from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com [10.237.217.45]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t6DD4F6d027864; Mon, 13 Jul 2015 14:04:16 +0100 Received: from sivswdev01.ir.intel.com (localhost [127.0.0.1]) by sivswdev01.ir.intel.com with ESMTP id t6DD4FYC027065; Mon, 13 Jul 2015 14:04:15 +0100 Received: (from bairemon@localhost) by sivswdev01.ir.intel.com with id t6DD4Fl6027061; Mon, 13 Jul 2015 14:04:15 +0100 From: Bernard Iremonger To: dev@dpdk.org Date: Mon, 13 Jul 2015 14:04:05 +0100 Message-Id: <1436792645-26831-3-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1436792645-26831-1-git-send-email-bernard.iremonger@intel.com> References: <1436792645-26831-1-git-send-email-bernard.iremonger@intel.com> Subject: [dpdk-dev] [PATCH v3 2/2] librte_ether: release queue array memory in close function 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: Mon, 13 Jul 2015 13:04:20 -0000 Signed-off-by: Bernard Iremonger --- lib/librte_ether/rte_ethdev.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index 270697e..04b6212 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -1395,6 +1395,11 @@ rte_eth_dev_close(uint8_t port_id) FUNC_PTR_OR_RET(*dev->dev_ops->dev_close); dev->data->dev_started = 0; (*dev->dev_ops->dev_close)(dev); + + rte_free(dev->data->rx_queues); + dev->data->rx_queues = NULL; + rte_free(dev->data->tx_queues); + dev->data->tx_queues = NULL; } int -- 1.9.1