diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-05 16:32:34 +0200 |
commit | e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2 (patch) | |
tree | 61df772a93f7f21af7c715ddd4b9a3f1a50e0509 /src/cadet/gnunet-service-cadet_peer.c | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |