From: Bernard Iremonger Date: Mon, 13 Jul 2015 13:04:05 +0000 (+0100) Subject: ethdev: free queue array when closing X-Git-Tag: spdx-start~8699 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5cd40a8416b736c12125652437fcd5ff3364a43f;p=dpdk.git ethdev: free queue array when closing Signed-off-by: Bernard Iremonger Acked-by: Michael Qiu --- diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c index d00d10422c..748e2be97c 100644 --- a/lib/librte_ether/rte_ethdev.c +++ b/lib/librte_ether/rte_ethdev.c @@ -1381,6 +1381,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