From f35a07273f252b98f65126c747bfb1eb435f0ace Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Wed, 12 Jun 2019 16:50:38 -0400 Subject: infra: fix minor memory leak in "api trace..." Build api trace message print fns into the built-in copy of api_format.c Optimize memory allocator behavior when the api trace wraps. Type: Fix Change-Id: If799d8784a459f981fc9ee3a3ca03d3f63b2bcd0 Signed-off-by: Dave Barach --- src/vat/api_format.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index be074bec615..60d66be368d 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -73,7 +73,11 @@ #undef vl_endianfun /* instantiate all the print functions we know about */ +#if VPP_API_TEST_BUILTIN == 0 #define vl_print(handle, ...) +#else +#define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) +#endif #define vl_printfun #include #undef vl_printfun -- cgit 1.2.3-korg