From a4ef82efee3d58ecda83f0982eff858252c51a90 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 14 May 2019 08:12:36 -0400 Subject: VPP-1649: fix coverity warning in api_format.c Change-Id: Idc22377ca705a45300faaf8acbc3cae5f10e1c92 Signed-off-by: Dave Barach --- src/vat/api_format.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vat') diff --git a/src/vat/api_format.c b/src/vat/api_format.c index fb0f3fdbf1d..10e9d3e8593 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -2699,7 +2699,7 @@ vl_api_dhcp_compl_event_t_handler (vl_api_dhcp_compl_event_t * mp) { u8 *s, i; - s = format (s, "DHCP compl event: pid %d %s hostname %s host_addr %U " + s = format (0, "DHCP compl event: pid %d %s hostname %s host_addr %U " "host_mac %U router_addr %U", ntohl (mp->pid), mp->lease.is_ipv6 ? "ipv6" : "ipv4", mp->lease.hostname, @@ -2713,6 +2713,7 @@ vl_api_dhcp_compl_event_t_handler (vl_api_dhcp_compl_event_t * mp) mp->lease.domain_server[i].address); errmsg ((char *) s); + vec_free (s); } static void vl_api_dhcp_compl_event_t_handler_json -- cgit 1.2.3-korg