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/core | |
parent | 1437556645417e6302862845e7ebcbd4c9908357 (diff) | |
download | gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip |
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/core_api.c | 2 | ||||
-rw-r--r-- | src/core/test_core_api_reliability.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index d24378654..81118693d 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -745,7 +745,7 @@ GNUNET_CORE_disconnect (struct GNUNET_CORE_Handle *handle) | |||
745 | GNUNET_MQ_destroy (handle->mq); | 745 | GNUNET_MQ_destroy (handle->mq); |
746 | handle->mq = NULL; | 746 | handle->mq = NULL; |
747 | } | 747 | } |
748 | GNUNET_free_non_null (handle->handlers); | 748 | GNUNET_free (handle->handlers); |
749 | GNUNET_free (handle); | 749 | GNUNET_free (handle); |
750 | } | 750 | } |
751 | 751 | ||
diff --git a/src/core/test_core_api_reliability.c b/src/core/test_core_api_reliability.c index b510e8993..136539ed3 100644 --- a/src/core/test_core_api_reliability.c +++ b/src/core/test_core_api_reliability.c | |||
@@ -384,7 +384,7 @@ process_hello (void *cls, | |||
384 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 384 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
385 | "Received (my) `%s' from transport service\n", "HELLO"); | 385 | "Received (my) `%s' from transport service\n", "HELLO"); |
386 | GNUNET_assert (message != NULL); | 386 | GNUNET_assert (message != NULL); |
387 | GNUNET_free_non_null (p->hello); | 387 | GNUNET_free (p->hello); |
388 | p->hello = GNUNET_copy_message (message); | 388 | p->hello = GNUNET_copy_message (message); |
389 | if ((p == &p1) && (NULL == p2.oh)) | 389 | if ((p == &p1) && (NULL == p2.oh)) |
390 | p2.oh = GNUNET_TRANSPORT_offer_hello (p2.cfg, | 390 | p2.oh = GNUNET_TRANSPORT_offer_hello (p2.cfg, |
@@ -523,8 +523,8 @@ main (int argc, | |||
523 | &ok); | 523 | &ok); |
524 | stop_arm (&p1); | 524 | stop_arm (&p1); |
525 | stop_arm (&p2); | 525 | stop_arm (&p2); |
526 | GNUNET_free_non_null (p1.hello); | 526 | GNUNET_free (p1.hello); |
527 | GNUNET_free_non_null (p2.hello); | 527 | GNUNET_free (p2.hello); |
528 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); | 528 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); |
529 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); | 529 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); |
530 | 530 | ||