From 8eaf6eafbf7f1bab5f40ade995161ee27a05a84f Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sun, 8 Aug 2021 17:03:15 +0200 Subject: -various coverity fixes --- src/util/client.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/client.c') diff --git a/src/util/client.c b/src/util/client.c index afd2fe900..febc36508 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -745,6 +745,8 @@ test_service_configuration (const char *service_name, service_name, "UNIXPATH", _ ("not a valid filename")); + if (NULL != unixpath) + GNUNET_free (unixpath); return GNUNET_SYSERR; /* UNIXPATH specified but invalid! */ } GNUNET_free (unixpath); -- cgit v1.2.3 From 5d482d89536a7523d999aeb45d11db12dcd4d764 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 8 Aug 2021 17:17:09 +0200 Subject: -if check is redundant --- src/util/client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util/client.c') diff --git a/src/util/client.c b/src/util/client.c index febc36508..4e5eca32a 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -745,8 +745,7 @@ test_service_configuration (const char *service_name, service_name, "UNIXPATH", _ ("not a valid filename")); - if (NULL != unixpath) - GNUNET_free (unixpath); + GNUNET_free (unixpath); return GNUNET_SYSERR; /* UNIXPATH specified but invalid! */ } GNUNET_free (unixpath); -- cgit v1.2.3