app/pdump: free mempool at cleanup resources
Checks
Commit Message
the mempool should be free when cleanup resources.
Signed-off-by: Tianli Lai <laitianli@tom.com>
---
app/pdump/main.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Fri, 25 Feb 2022 09:00:37 +0800
Tianli Lai <laitianli@tom.com> wrote:
> the mempool should be free when cleanup resources.
>
> Signed-off-by: Tianli Lai <laitianli@tom.com>
Thanks for fixing this.
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
25/02/2022 03:40, Stephen Hemminger:
> On Fri, 25 Feb 2022 09:00:37 +0800
> Tianli Lai <laitianli@tom.com> wrote:
>
> > the mempool should be free when cleanup resources.
> >
> > Signed-off-by: Tianli Lai <laitianli@tom.com>
>
> Thanks for fixing this.
>
> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Applied, thanks.
@@ -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);
}
}