From 482394428b00dfabff4848305d896d2df8046af9 Mon Sep 17 00:00:00 2001 From: Mohsin Kazmi Date: Mon, 4 Oct 2021 11:21:57 +0200 Subject: interface: remove the redundant vec_free on rx_queue_indices Type: fix vnet_delete_hw_interface() calls vec_free on rx_queue_indices. function vnet_hw_if_unregister_all_rx_queues() is used to free rx_queue_indices which is also called by vnet_delete_hw_interface(). So, second vec_free is redundant. Change-Id: Ibda4be38fd122d33532bb384c97b0b9e5f441134 Signed-off-by: Mohsin Kazmi --- src/vnet/interface.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/vnet/interface.c') diff --git a/src/vnet/interface.c b/src/vnet/interface.c index 56eff35e154..7b5d4d6df66 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -1113,7 +1113,6 @@ vnet_delete_hw_interface (vnet_main_t * vnm, u32 hw_if_index) hash_unset_mem (im->hw_interface_by_name, hw->name); vec_free (hw->name); vec_free (hw->hw_address); - vec_free (hw->rx_queue_indices); pool_put (im->hw_interfaces, hw); } -- cgit 1.2.3-korg