aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_testbed.c
diff options
context:
space:
mode:
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 ();