summaryrefslogtreecommitdiffstats
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:04:55 +0000
commit6e4f40b6a9635df83cbafae348ab72017861fa8b (patch)
tree4b93ee76bc7795dae6ce261dc01ab15387fd14c9
parentdf53f5fda277a035984f1de4474f0b58ae15b114 (diff)
memory leak
obvious leak of parent_indices Change-Id: I572b33de1756c8062a87c754117d990622fe12fe Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
-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 *