Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0610039
)
STATS fix memory leak in stat_client.c
54/13454/2
author
Dave Cornejo
<dcornejo@netgate.com>
Thu, 12 Jul 2018 18:37:55 +0000
(08:37 -1000)
committer
Dave Barach
<openvpp@barachs.net>
Fri, 13 Jul 2018 00:10:21 +0000
(
00:10
+0000)
continue statement in case bypasses cleaning up of unserialized
node
Change-Id: I0103d31df2eed3ed04d7cdcdfb790f4d9a376336
Signed-off-by: Dave Cornejo <dcornejo@netgate.com>
src/vpp/app/stat_client.c
patch
|
blob
|
history
diff --git
a/src/vpp/app/stat_client.c
b/src/vpp/app/stat_client.c
index
0ee78d2
..
2bedf6f
100644
(file)
--- a/
src/vpp/app/stat_client.c
+++ b/
src/vpp/app/stat_client.c
@@
-259,6
+259,9
@@
stat_poll_loop (stat_client_main_t * sm)
switch (n->type)
{
default:
+ vec_free (n->name);
+ vec_free (n->next_nodes);
+ vec_free (n);
continue;
case VLIB_NODE_TYPE_INTERNAL: