From: Mohsin Kazmi Date: Mon, 4 Oct 2021 09:21:57 +0000 (+0200) Subject: interface: remove the redundant vec_free on rx_queue_indices X-Git-Tag: v22.06-rc0~460 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=482394428b00dfabff4848305d896d2df8046af9;p=vpp.git 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 --- 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); }