interface: remove the redundant vec_free on rx_queue_indices 29/33929/3
authorMohsin Kazmi <sykazmi@cisco.com>
Mon, 4 Oct 2021 09:21:57 +0000 (11:21 +0200)
committerDamjan Marion <dmarion@me.com>
Mon, 4 Oct 2021 18:39:15 +0000 (18:39 +0000)
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 <sykazmi@cisco.com>
src/vnet/interface.c

index 56eff35..7b5d4d6 100644 (file)
@@ -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);
 }