Skip to contentSkip to conversation

app/pdump: free mempool at cleanup resources

PATCH New Tianli Lai 1 participant 1 message Feb 24, 2022

lore
Share & tools
lore

Tianli Lai

author
#0 lore raw

PATCH 1/1 app/pdump: free mempool at cleanup resources

the mempool should be free when cleanup resources.

---
 app/pdump/main.c | 4 ++++
 1 file changed, 4 insertions(+)
app/pdump/main.c +4 -0
index 04a38e8..9c77fc6 100644
@@ -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