net/idpf: fix memory leak
PATCH 1/1 net/idpf: fix memory leak
From: Beilei Xing <[email protected]>
This patch fixes memory leak during Tx split queue release.
--- drivers/net/idpf/idpf_rxtx.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/idpf/idpf_rxtx.c +5 -1
@@ -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);
Signature · 1 line
2.26.2
Quoted 15 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Wednesday, November 9, 2022 2:29 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Peng, Yuan <[email protected]>; Xing, Beilei <[email protected]>
Subject: [PATCH] net/idpf: fix memory leakFrom: Beilei Xing <[email protected]>
This patch fixes memory leak during Tx split queue release.
Fixes 19b58dba9dc3 ("net/idpf: support queue release")Signed-off-by Beilei Xing <[email protected]>
Zhang, Qi Z
AppliedQuoted 26 lines
-----Original Message-----
From: Peng, Yuan <[email protected]>
Sent: Wednesday, November 9, 2022 3:19 PM
To: Xing, Beilei <[email protected]>; Wu, Jingjing <[email protected]>
Cc: [email protected]
Subject: RE: [PATCH] net/idpf: fix memory leakTested-by Peng, Yuan <[email protected]>Quoted 15 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Wednesday, November 9, 2022 2:29 PM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Peng, Yuan <[email protected]>; Xing, Beilei <[email protected]>
Subject: [PATCH] net/idpf: fix memory leakFrom: Beilei Xing <[email protected]>
This patch fixes memory leak during Tx split queue release.
Fixes 19b58dba9dc3 ("net/idpf: support queue release")Signed-off-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi