diff options
Diffstat (limited to 'src/testbed/testbed_api_statistics.c')
-rw-r--r-- | src/testbed/testbed_api_statistics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testbed/testbed_api_statistics.c b/src/testbed/testbed_api_statistics.c index 5fa0750e3..e6efc1fb0 100644 --- a/src/testbed/testbed_api_statistics.c +++ b/src/testbed/testbed_api_statistics.c | |||
@@ -340,7 +340,7 @@ opstart_get_stats (void *cls) | |||
340 | GNUNET_break (0); | 340 | GNUNET_break (0); |
341 | continue; | 341 | continue; |
342 | } | 342 | } |
343 | peer_sc = GNUNET_malloc (sizeof (struct PeerGetStatsContext)); | 343 | peer_sc = GNUNET_new (struct PeerGetStatsContext); |
344 | peer_sc->sc = sc; | 344 | peer_sc->sc = sc; |
345 | peer_sc->peer_index = peer; | 345 | peer_sc->peer_index = peer; |
346 | sc->ops[peer] = | 346 | sc->ops[peer] = |
@@ -417,7 +417,7 @@ GNUNET_TESTBED_get_statistics (unsigned int num_peers, | |||
417 | if (NULL == no_wait_queue) | 417 | if (NULL == no_wait_queue) |
418 | no_wait_queue = GNUNET_TESTBED_operation_queue_create_ | 418 | no_wait_queue = GNUNET_TESTBED_operation_queue_create_ |
419 | (OPERATION_QUEUE_TYPE_FIXED, UINT_MAX); | 419 | (OPERATION_QUEUE_TYPE_FIXED, UINT_MAX); |
420 | sc = GNUNET_malloc (sizeof (struct GetStatsContext)); | 420 | sc = GNUNET_new (struct GetStatsContext); |
421 | sc->peers = peers; | 421 | sc->peers = peers; |
422 | sc->subsystem = (NULL == subsystem) ? NULL : GNUNET_strdup (subsystem); | 422 | sc->subsystem = (NULL == subsystem) ? NULL : GNUNET_strdup (subsystem); |
423 | sc->name = (NULL == name) ? NULL : GNUNET_strdup (name); | 423 | sc->name = (NULL == name) ? NULL : GNUNET_strdup (name); |