diff options
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 |