From: Jiayu Hu Date: Tue, 20 Apr 2021 08:57:44 +0000 (-0400) Subject: vhost: remove unnecessary free X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0090535f7ad427a0b12f302e84f230db508d4b59;p=dpdk.git vhost: remove unnecessary free This patch removes unnecessary rte_free() for async_pkts_info and async_descs_split. Signed-off-by: Jiayu Hu Reviewed-by: Maxime Coquelin Tested-by: Yinan Wang --- diff --git a/lib/vhost/vhost_user.c b/lib/vhost/vhost_user.c index cdd46a0116..fa8929f563 100644 --- a/lib/vhost/vhost_user.c +++ b/lib/vhost/vhost_user.c @@ -2013,13 +2013,6 @@ vhost_user_get_vring_base(struct virtio_net **pdev, } else { rte_free(vq->shadow_used_split); vq->shadow_used_split = NULL; - - if (vq->async_pkts_info) - rte_free(vq->async_pkts_info); - if (vq->async_descs_split) - rte_free(vq->async_descs_split); - vq->async_pkts_info = NULL; - vq->async_descs_split = NULL; } rte_free(vq->batch_copy_elems);