git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
046f116
)
net/softnic: fix connection memory leak
author
Dapeng Yu
<dapengx.yu@intel.com>
Fri, 9 Jul 2021 06:00:56 +0000
(14:00 +0800)
committer
Andrew Rybchenko
<Andrew.Rybchenko@oktetlabs.ru>
Tue, 13 Jul 2021 09:34:57 +0000
(11:34 +0200)
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 <dapengx.yu@intel.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
drivers/net/softnic/conn.c
patch
|
blob
|
history
diff --git
a/drivers/net/softnic/conn.c
b/drivers/net/softnic/conn.c
index
8b66580
..
5b03135
100644
(file)
--- 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);