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:
parent
ef47d95e90
commit
d9e46239ee
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user