[PATCH] app/pdump: free mempool at cleanup resources

Tianli Lai laitianli at tom.com
Fri Feb 25 02:00:37 CET 2022


 the mempool should be free when cleanup resources.

Signed-off-by: Tianli Lai <laitianli at tom.com>
---
 app/pdump/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/pdump/main.c b/app/pdump/main.c
index 04a38e8..3fe17ea 100644
--- a/app/pdump/main.c
+++ b/app/pdump/main.c
@@ -507,6 +507,7 @@ struct parse_val {
 		/* free the rings */
 		rte_ring_free(pt->rx_ring);
 		rte_ring_free(pt->tx_ring);
+		rte_mempool_free(pt->mp);
 	}
 }
 
-- 
1.8.3.1



More information about the dev mailing list