summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Cornejo <dcornejo@netgate.com>2018-07-12 08:37:55 -1000
committerDave Barach <openvpp@barachs.net>2018-07-13 00:10:21 +0000
commitd5091ffaf5be0f6ac02ccb77bbc1275725bd356d (patch)
tree384e0def83bac180a723f704b0b633ad84061fd0
parent0610039fd06c760924fb92d0fc7b4d3e0ffeb8e3 (diff)
STATS fix memory leak in stat_client.c
continue statement in case bypasses cleaning up of unserialized node Change-Id: I0103d31df2eed3ed04d7cdcdfb790f4d9a376336 Signed-off-by: Dave Cornejo <dcornejo@netgate.com>
-rw-r--r--src/vpp/app/stat_client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpp/app/stat_client.c b/src/vpp/app/stat_client.c
index 0ee78d200af..2bedf6f2d7d 100644
--- 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: