aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:32:34 +0200
commite31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch)
tree61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/cadet
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/cadet_api.c2
-rw-r--r--src/cadet/gnunet-service-cadet.c2
-rw-r--r--src/cadet/gnunet-service-cadet_hello.c2
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c6
4 files changed, 6 insertions, 6 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 45cb66c1d..67f6571c5 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -819,7 +819,7 @@ GNUNET_CADET_close_port (struct GNUNET_CADET_Port *p)
819 msg->port = p->id; 819 msg->port = p->id;
820 GNUNET_MQ_send (p->cadet->mq, env); 820 GNUNET_MQ_send (p->cadet->mq, env);
821 } 821 }
822 GNUNET_free_non_null (p->handlers); 822 GNUNET_free (p->handlers);
823 GNUNET_free (p); 823 GNUNET_free (p);
824} 824}
825 825
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c
index 03af3d5c0..f3767fb01 100644
--- a/src/cadet/gnunet-service-cadet.c
+++ b/src/cadet/gnunet-service-cadet.c
@@ -415,7 +415,7 @@ shutdown_rest ()
415 } 415 }
416 GCD_shutdown (); 416 GCD_shutdown ();
417 GCH_shutdown (); 417 GCH_shutdown ();
418 GNUNET_free_non_null (my_private_key); 418 GNUNET_free (my_private_key);
419 my_private_key = NULL; 419 my_private_key = NULL;
420} 420}
421 421
diff --git a/src/cadet/gnunet-service-cadet_hello.c b/src/cadet/gnunet-service-cadet_hello.c
index 21870a454..c7857032b 100644
--- a/src/cadet/gnunet-service-cadet_hello.c
+++ b/src/cadet/gnunet-service-cadet_hello.c
@@ -75,7 +75,7 @@ got_hello (void *cls,
75 if (0 == GNUNET_memcmp (id, 75 if (0 == GNUNET_memcmp (id,
76 &my_full_id)) 76 &my_full_id))
77 { 77 {
78 GNUNET_free_non_null (mine); 78 GNUNET_free (mine);
79 mine = (struct GNUNET_HELLO_Message *) GNUNET_copy_message (&hello->header); 79 mine = (struct GNUNET_HELLO_Message *) GNUNET_copy_message (&hello->header);
80 GCD_hello_update (); 80 GCD_hello_update ();
81 return; 81 return;
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 55800b88c..e5885278b 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -345,8 +345,8 @@ destroy_peer (void *cls)
345 GNUNET_CONTAINER_multipeermap_remove (peers, 345 GNUNET_CONTAINER_multipeermap_remove (peers,
346 &cp->pid, 346 &cp->pid,
347 cp)); 347 cp));
348 GNUNET_free_non_null (cp->path_heads); 348 GNUNET_free (cp->path_heads);
349 GNUNET_free_non_null (cp->path_tails); 349 GNUNET_free (cp->path_tails);
350 cp->path_dll_length = 0; 350 cp->path_dll_length = 0;
351 if (NULL != cp->search_h) 351 if (NULL != cp->search_h)
352 { 352 {
@@ -376,7 +376,7 @@ destroy_peer (void *cls)
376 GNUNET_SCHEDULER_cancel (cp->heap_cleanup_task); 376 GNUNET_SCHEDULER_cancel (cp->heap_cleanup_task);
377 cp->heap_cleanup_task = NULL; 377 cp->heap_cleanup_task = NULL;
378 } 378 }
379 GNUNET_free_non_null (cp->hello); 379 GNUNET_free (cp->hello);
380 /* Peer should not be freed if paths exist; if there are no paths, 380 /* Peer should not be freed if paths exist; if there are no paths,
381 there ought to be no connections, and without connections, no 381 there ought to be no connections, and without connections, no
382 notifications. Thus we can assert that mqm_head is empty at this 382 notifications. Thus we can assert that mqm_head is empty at this