aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_testbed.c
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/testbed/testbed_api_testbed.c
parent1437556645417e6302862845e7ebcbd4c9908357 (diff)
downloadgnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.tar.gz
gnunet-e31c1d4a9f78c4e31fda1f98fe349b33abdd01a2.zip
GNUNET_free_non_null -> GNUNET_free
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r--src/testbed/testbed_api_testbed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c
index 7be8054ca..7ae30e0c6 100644
--- a/src/testbed/testbed_api_testbed.c
+++ b/src/testbed/testbed_api_testbed.c
@@ -472,11 +472,11 @@ cleanup (struct GNUNET_TESTBED_RunHandle *rc)
472 GNUNET_TESTBED_host_destroy (rc->h); 472 GNUNET_TESTBED_host_destroy (rc->h);
473 for (hid = 0; hid < rc->num_hosts; hid++) 473 for (hid = 0; hid < rc->num_hosts; hid++)
474 GNUNET_TESTBED_host_destroy (rc->hosts[hid]); 474 GNUNET_TESTBED_host_destroy (rc->hosts[hid]);
475 GNUNET_free_non_null (rc->hosts); 475 GNUNET_free (rc->hosts);
476 if (NULL != rc->cfg) 476 if (NULL != rc->cfg)
477 GNUNET_CONFIGURATION_destroy (rc->cfg); 477 GNUNET_CONFIGURATION_destroy (rc->cfg);
478 GNUNET_free_non_null (rc->topo_file); 478 GNUNET_free (rc->topo_file);
479 GNUNET_free_non_null (rc->trusted_ip); 479 GNUNET_free (rc->trusted_ip);
480 GNUNET_free (rc); 480 GNUNET_free (rc);
481} 481}
482 482
@@ -863,7 +863,7 @@ event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
863 case RC_PEERS_CREATED: 863 case RC_PEERS_CREATED:
864 case RC_READY: 864 case RC_READY:
865 rc->state = RC_PEERS_SHUTDOWN; 865 rc->state = RC_PEERS_SHUTDOWN;
866 GNUNET_free_non_null (rc->peers); 866 GNUNET_free (rc->peers);
867 rc->peers = NULL; 867 rc->peers = NULL;
868 DEBUG ("Peers shut down in %s\n", prof_time (rc)); 868 DEBUG ("Peers shut down in %s\n", prof_time (rc));
869 GNUNET_SCHEDULER_shutdown (); 869 GNUNET_SCHEDULER_shutdown ();