summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorKingwel Xie <kingwel.xie@ericsson.com>2018-04-24 17:47:56 +0800
committerChris Luke <chris_luke@comcast.com>2018-04-24 18:31:39 +0000
commitcd4d5b71dc4814863b67b4f53ef8e2e904aeaeab (patch)
treebf413b648a64f09bf8ba23451ffc695fc78dacb9 /src/vnet
parenta15cd027498a2a23f1ec03579e734847f8ff98cc (diff)
memory leak
obvious leak of parent_indices Change-Id: I572b33de1756c8062a87c754117d990622fe12fe Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/dpo/dpo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/dpo/dpo.c b/src/vnet/dpo/dpo.c
index 19e3714c536..83eb6f12c44 100644
--- a/src/vnet/dpo/dpo.c
+++ b/src/vnet/dpo/dpo.c
@@ -565,6 +565,9 @@ dpo_stack_from_node (u32 child_node_index,
}
}
dpo_stack_i(edge, dpo, parent);
+
+ /* should free this local vector to avoid memory leak */
+ vec_free(parent_indices);
}
static clib_error_t *