summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Iremonger <bernard.iremonger@intel.com>2015-07-13 14:04:05 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-19 21:16:09 +0200
commit5cd40a8416b736c12125652437fcd5ff3364a43f (patch)
tree7699958ba78a0bb5b6c44236fc0b4c6d31a572b6
parentd281632b36b6a681feed8e923ca3105bdbe583dd (diff)
downloaddpdk-5cd40a8416b736c12125652437fcd5ff3364a43f.zip
dpdk-5cd40a8416b736c12125652437fcd5ff3364a43f.tar.gz
dpdk-5cd40a8416b736c12125652437fcd5ff3364a43f.tar.xz
ethdev: free queue array when closing
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Michael Qiu <michael.qiu@intel.com>
-rw-r--r--lib/librte_ether/rte_ethdev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index d00d104..748e2be 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