From 2951d901a5b6ac48b0203b2da9e35ea419b9b4d6 Mon Sep 17 00:00:00 2001 From: Chris Luke Date: Tue, 5 Sep 2017 11:59:55 -0400 Subject: Fixes for issues raised by Coverity (VPP-972) Change-Id: I4b1f27b95d67d48b7a13750ff8754c344ed7afa7 Signed-off-by: Chris Luke --- src/plugins/memif/memif_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/memif') diff --git a/src/plugins/memif/memif_test.c b/src/plugins/memif/memif_test.c index cbef4dfa22e..a7c23daae9c 100644 --- a/src/plugins/memif/memif_test.c +++ b/src/plugins/memif/memif_test.c @@ -186,10 +186,10 @@ api_memif_create (vat_main_t * vam) strncpy ((char *) mp->socket_filename, (char *) socket_filename, 127); vec_free (socket_filename); } - if (socket_filename != 0) + if (secret != 0) { strncpy ((char *) mp->secret, (char *) secret, 16); - vec_free (socket_filename); + vec_free (secret); } memcpy (mp->hw_addr, hw_addr, 6); mp->rx_queues = rx_queues; -- cgit 1.2.3-korg