Add a debug-CLI leak-checker 90/19690/4
authorDave Barach <dave@barachs.net>
Fri, 17 May 2019 14:46:40 +0000 (10:46 -0400)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 17 May 2019 21:06:13 +0000 (21:06 +0000)
commit8fdde3c22ff981f0c41b78d3640e3249873e8495
tree15016f3c45d2c9a7ec68863302820ee342445c13
parentce5c2ce518346990d081e4e0c56070be4a743586
Add a debug-CLI leak-checker

leak-check { <any-debug-cli-command-and-args> }

Hint: "set term history off" or you'll have to sort through a bunch of
bogus leaks related to the debug cli history mechanism.

Cleaned up a set of reported leaks in the "show interface" command. At
some point, we thought about making a per-thread vlib_mains vector,
but we never did that. Several interface-related CLI's maintained
local static cache vectors. Not a bad idea, but not useful as things
shook out. Removed the static vectors.

Change-Id: I756bf2721a0d91993ecfded34c79da406f30a548
Signed-off-by: Dave Barach <dave@barachs.net>
src/vlib/cli.c
src/vnet/interface_api.c
src/vnet/interface_cli.c
src/vnet/interface_format.c
src/vnet/misc.c
src/vnet/vnet.h
src/vppinfra/mem.h