app/pdump: free mempool at cleanup resources
PATCH 1/1 app/pdump: free mempool at cleanup resources
the mempool should be free when cleanup resources.
Signed-off-by Tianli Lai <[email protected]>
--- app/pdump/main.c | 4 ++++ 1 file changed, 4 insertions(+)
app/pdump/main.c +4 -0
@@ -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 ; + } } }
Signature · 1 line
1.8.3.1