aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-09-03 20:58:08 +0200
committerDamjan Marion <dmarion@me.com>2019-09-03 20:02:36 +0000
commitb6fde4a8bae474c6b73d08d223028f42e396d452 (patch)
treec02aa573f70dc1a987f3396dd3c7e5de53a21664 /src
parenta03d25d327ed9db40922cfcf247c3ee793c4754d (diff)
stats: memory leak with per-node-counters on
vlib_node_get_nodes() creates a duplicate node structure which was never freed. Type: fix Fixes: 1ddbc0138b Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: Ib1200854937faaa694b398607d2f0ba65aa81c01
Diffstat (limited to 'src')
-rw-r--r--src/vpp/stats/stat_segment.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpp/stats/stat_segment.c b/src/vpp/stats/stat_segment.c
index bf970506d59..bb533d19118 100644
--- a/src/vpp/stats/stat_segment.c
+++ b/src/vpp/stats/stat_segment.c
@@ -527,7 +527,10 @@ update_node_counters (stat_segment_main_t * sm)
c[n->index] =
n->stats_total.suspends - n->stats_last_clear.suspends;
}
+ vec_free (node_dups[j]);
}
+ vec_free (node_dups);
+ vec_free (stat_vms);
}
static void