gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 04/04: - fixed coverity findings


From: gnunet
Subject: [gnunet] 04/04: - fixed coverity findings
Date: Tue, 25 Oct 2022 10:44:34 +0200

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

commit 1567c9472b917a097cace08a7b08fc724e14f381
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Tue Oct 25 10:43:47 2022 +0200

    - fixed coverity findings
---
 src/testing/testing.c                               | 4 +++-
 src/transport/transport_api_cmd_backchannel_check.c | 2 --
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/testing/testing.c b/src/testing/testing.c
index aa8dd339c..e6f073f63 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -2065,6 +2065,7 @@ get_node_info (unsigned int num,
                struct GNUNET_TESTING_NodeConnection **node_connections_ex)
 {
   struct GNUNET_ShortHashCode *hkey;
+  struct GNUNET_ShortHashCode *hkey_node;
   struct GNUNET_HashCode hc;
   unsigned int namespace_n;
   unsigned int node_m;
@@ -2111,7 +2112,7 @@ get_node_info (unsigned int num,
     if (NULL != namespace)
     {
       node_m = num - topology->nodes_x - topology->nodes_m * (namespace_n - 1);
-      hkey = GNUNET_new (struct GNUNET_ShortHashCode);
+      hkey_node = GNUNET_new (struct GNUNET_ShortHashCode);
       GNUNET_CRYPTO_hash (&node_m, sizeof(node_m), &hc);
       memcpy (hkey,
               &hc,
@@ -2129,6 +2130,7 @@ get_node_info (unsigned int num,
       *node_ex = node;
       *namespace_ex = namespace;
       *node_connections_ex = node_connections;
+      GNUNET_free (hkey_node);
     }
   }
   GNUNET_free (hkey);
diff --git a/src/transport/transport_api_cmd_backchannel_check.c 
b/src/transport/transport_api_cmd_backchannel_check.c
index c409588c9..0376275a3 100644
--- a/src/transport/transport_api_cmd_backchannel_check.c
+++ b/src/transport/transport_api_cmd_backchannel_check.c
@@ -495,8 +495,6 @@ backchannel_check_run (void *cls,
     GNUNET_TESTING_async_finish (&cs->ac);
 
   GNUNET_free (namespace_it);
-  GNUNET_free (node_it);
-
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]