diff options
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c index 51aa0a55f..f9182b57f 100644 --- a/src/transport/transport-testing.c +++ b/src/transport/transport-testing.c | |||
@@ -246,7 +246,7 @@ GNUNET_TRANSPORT_TESTING_start_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth | |||
246 | return NULL; | 246 | return NULL; |
247 | } | 247 | } |
248 | 248 | ||
249 | struct PeerContext *p = GNUNET_malloc (sizeof (struct PeerContext)); | 249 | struct PeerContext *p = GNUNET_new (struct PeerContext); |
250 | GNUNET_CONTAINER_DLL_insert (tth->p_head, tth->p_tail, p); | 250 | GNUNET_CONTAINER_DLL_insert (tth->p_head, tth->p_tail, p); |
251 | 251 | ||
252 | /* Create configuration and call testing lib to modify it */ | 252 | /* Create configuration and call testing lib to modify it */ |
@@ -471,7 +471,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct GNUNET_TRANSPORT_TESTING_handle * | |||
471 | GNUNET_assert (tth != NULL); | 471 | GNUNET_assert (tth != NULL); |
472 | 472 | ||
473 | struct ConnectingContext *cc = | 473 | struct ConnectingContext *cc = |
474 | GNUNET_malloc (sizeof (struct ConnectingContext)); | 474 | GNUNET_new (struct ConnectingContext); |
475 | 475 | ||
476 | GNUNET_assert (p1 != NULL); | 476 | GNUNET_assert (p1 != NULL); |
477 | GNUNET_assert (p2 != NULL); | 477 | GNUNET_assert (p2 != NULL); |
@@ -574,7 +574,7 @@ GNUNET_TRANSPORT_TESTING_init () | |||
574 | struct GNUNET_TRANSPORT_TESTING_handle *tth; | 574 | struct GNUNET_TRANSPORT_TESTING_handle *tth; |
575 | 575 | ||
576 | /* prepare hostkeys */ | 576 | /* prepare hostkeys */ |
577 | tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle)); | 577 | tth = GNUNET_new (struct GNUNET_TRANSPORT_TESTING_handle); |
578 | 578 | ||
579 | /* Init testing the testing lib */ | 579 | /* Init testing the testing lib */ |
580 | tth->tl_system = GNUNET_TESTING_system_create ("transport-testing", NULL, | 580 | tth->tl_system = GNUNET_TESTING_system_create ("transport-testing", NULL, |