From: Dapeng Yu Date: Fri, 9 Jul 2021 06:00:56 +0000 (+0800) Subject: net/softnic: fix connection memory leak X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ae2b3ba6430d9f86cc3583b893f442aaa8934655;p=dpdk.git 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 --- 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);