net/idpf: fix memory leak in Tx queue release

This patch fixes memory leak during Tx split queue release.

Fixes: 19b58dba9dc3 ("net/idpf: support queue release")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Tested-by: Yuan Peng <yuan.peng@intel.com>
This commit is contained in:
Beilei Xing 2022-11-09 06:29:13 +00:00 committed by Qi Zhang
parent ef47d95e90
commit d9e46239ee

View File

@ -213,7 +213,11 @@ idpf_tx_queue_release(void *txq)
if (q == NULL)
return;
rte_free(q->complq);
if (q->complq) {
rte_memzone_free(q->complq->mz);
rte_free(q->complq);
}
q->ops->release_mbufs(q);
rte_free(q->sw_ring);
rte_memzone_free(q->mz);