STATS fix memory leak in stat_client.c
[vpp.git] / src / vpp / app / stat_client.c
index 0ee78d2..2bedf6f 100644 (file)
@@ -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: