diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 19:45:10 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-15 19:45:10 +0200 |
commit | f7d5c045f7ada74d3227f93631247d04344923ba (patch) | |
tree | d97f3376663571e297a2ef81ddc7d32a37cbfd77 /src/dht/gnunet-service-dht_hello.c | |
parent | c2b5973f9ada481c7d623e388094dd58e7668211 (diff) | |
download | gnunet-f7d5c045f7ada74d3227f93631247d04344923ba.tar.gz gnunet-f7d5c045f7ada74d3227f93631247d04344923ba.zip |
Revert "-coverity: nptr frees"
This reverts commit c2b5973f9ada481c7d623e388094dd58e7668211.
Diffstat (limited to 'src/dht/gnunet-service-dht_hello.c')
-rw-r--r-- | src/dht/gnunet-service-dht_hello.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dht/gnunet-service-dht_hello.c b/src/dht/gnunet-service-dht_hello.c index 7b22e928f..906391334 100644 --- a/src/dht/gnunet-service-dht_hello.c +++ b/src/dht/gnunet-service-dht_hello.c | |||
@@ -86,8 +86,7 @@ process_hello (void *cls, | |||
86 | gettext_noop ("# HELLOs obtained from peerinfo"), 1, | 86 | gettext_noop ("# HELLOs obtained from peerinfo"), 1, |
87 | GNUNET_NO); | 87 | GNUNET_NO); |
88 | hm = GNUNET_CONTAINER_multipeermap_get (peer_to_hello, peer); | 88 | hm = GNUNET_CONTAINER_multipeermap_get (peer_to_hello, peer); |
89 | if (NULL != hm) | 89 | GNUNET_free (hm); |
90 | GNUNET_free (hm); | ||
91 | hm = GNUNET_malloc (GNUNET_HELLO_size (hello)); | 90 | hm = GNUNET_malloc (GNUNET_HELLO_size (hello)); |
92 | GNUNET_memcpy (hm, hello, GNUNET_HELLO_size (hello)); | 91 | GNUNET_memcpy (hm, hello, GNUNET_HELLO_size (hello)); |
93 | GNUNET_assert (GNUNET_SYSERR != | 92 | GNUNET_assert (GNUNET_SYSERR != |