From ae2b3ba6430d9f86cc3583b893f442aaa8934655 Mon Sep 17 00:00:00 2001 From: Dapeng Yu Date: Fri, 9 Jul 2021 14:00:56 +0800 Subject: [PATCH] net/softnic: fix connection memory leak In function softnic_conn_init(), a block of memory is allocated as connection buffer, but it is never freed in softnic_conn_free(), which cause memory leak. Fixes: 7709a63bf178 ("net/softnic: add connection agent") Cc: stable@dpdk.org Signed-off-by: Dapeng Yu Reviewed-by: Andrew Rybchenko --- drivers/net/softnic/conn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/softnic/conn.c b/drivers/net/softnic/conn.c index 8b66580887..5b031358d5 100644 --- a/drivers/net/softnic/conn.c +++ b/drivers/net/softnic/conn.c @@ -144,6 +144,7 @@ softnic_conn_free(struct softnic_conn *conn) free(conn->msg_out); free(conn->msg_in); + free(conn->buf); free(conn->prompt); free(conn->welcome); free(conn); -- 2.20.1