the mempool should be free when cleanup resources. Signed-off-by: Tianli Lai <laitia...@tom.com> --- app/pdump/main.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/app/pdump/main.c b/app/pdump/main.c index 04a38e8..9c77fc6 100644 --- a/app/pdump/main.c +++ b/app/pdump/main.c @@ -507,6 +507,10 @@ struct parse_val { /* free the rings */ rte_ring_free(pt->rx_ring); rte_ring_free(pt->tx_ring); + if (pt->mp) { + rte_mempool_free(pt->mp); + pt->mp = NULL; + } } } -- 1.8.3.1