]> git.puffer.fish Git - mirror/frr.git/commit
lib: Free memory correctly when braces used in parser
authorDon Slice <dslice@cumulusnetworks.com>
Tue, 26 Jul 2016 13:44:39 +0000 (06:44 -0700)
committerDon Slice <dslice@cumulusnetworks.com>
Tue, 26 Jul 2016 19:32:53 +0000 (12:32 -0700)
commitc9a42b3d91e85d9aa400c65f0d217648c094eef0
tree11f44468e88d837fbddef5d730ca72cc2558646a
parent711093b5ebfd059f433396e4bca98216e02482fb
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
lib/command.c