summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDon Slice <dslice@cumulusnetworks.com>2016-07-26 06:44:39 -0700
committerDon Slice <dslice@cumulusnetworks.com>2016-07-26 12:32:53 -0700
commitc9a42b3d91e85d9aa400c65f0d217648c094eef0 (patch)
tree11f44468e88d837fbddef5d730ca72cc2558646a /lib/command.c
parent711093b5ebfd059f433396e4bca98216e02482fb (diff)
lib: Free memory correctly when braces used in parser
When braces (optional parameters) are used in the quagga parser, there was a small leak on every iteration. Since this construct is primarily used in the configuation process rather than show commands, it was not readily apparent. With the addition of the "show ip bgp {json}" form of the commands, each time one was run, memory was leaked. Ticket: CM-11435 Signed-off-by: Don Slice Reviewed By: Donald Sharp Testing Done: Manual testing, bgp-min and bgp-smoke successful
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.c b/lib/command.c
index eea4fc1960..b3819048e5 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1427,6 +1427,7 @@ cmd_matcher_build_keyword_args(struct cmd_matcher *matcher,
{
word_token = vector_slot(keyword_vector, 0);
arg = word_token->cmd;
+ XFREE (MTYPE_TMP, keyword_args);
}
else
{