From d5091ffaf5be0f6ac02ccb77bbc1275725bd356d Mon Sep 17 00:00:00 2001 From: Dave Cornejo Date: Thu, 12 Jul 2018 08:37:55 -1000 Subject: 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 --- src/vpp/app/stat_client.c | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit 1.2.3-korg