app/pdump: free mempool at resources cleanup
authorTianli Lai <laitianli@tom.com>
Fri, 25 Feb 2022 01:00:37 +0000 (09:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Mar 2022 23:19:31 +0000 (00:19 +0100)
The mempool should be free when cleanup resources.

Signed-off-by: Tianli Lai <laitianli@tom.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
app/pdump/main.c

index 96fa76f..c6cf9d9 100644 (file)
@@ -507,6 +507,7 @@ cleanup_rings(void)
                /* free the rings */
                rte_ring_free(pt->rx_ring);
                rte_ring_free(pt->tx_ring);
+               rte_mempool_free(pt->mp);
        }
 }