diff options
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 2dbca7541..3e39056be 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -511,7 +511,7 @@ connect_nse_service () | |||
511 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) | 511 | (0 != (i % (num_peers_in_round[current_round] / connection_limit)))) |
512 | continue; | 512 | continue; |
513 | LOG_DEBUG ("Connecting to nse service of peer %d\n", i); | 513 | LOG_DEBUG ("Connecting to nse service of peer %d\n", i); |
514 | current_peer = GNUNET_malloc (sizeof (struct NSEPeer)); | 514 | current_peer = GNUNET_new (struct NSEPeer); |
515 | current_peer->daemon = daemons[i]; | 515 | current_peer->daemon = daemons[i]; |
516 | current_peer->nse_op | 516 | current_peer->nse_op |
517 | = GNUNET_TESTBED_service_connect (NULL, | 517 | = GNUNET_TESTBED_service_connect (NULL, |
@@ -593,7 +593,7 @@ make_oplist_entry () | |||
593 | { | 593 | { |
594 | struct OpListEntry *entry; | 594 | struct OpListEntry *entry; |
595 | 595 | ||
596 | entry = GNUNET_malloc (sizeof (struct OpListEntry)); | 596 | entry = GNUNET_new (struct OpListEntry); |
597 | GNUNET_CONTAINER_DLL_insert_tail (oplist_head, oplist_tail, entry); | 597 | GNUNET_CONTAINER_DLL_insert_tail (oplist_head, oplist_tail, entry); |
598 | return entry; | 598 | return entry; |
599 | } | 599 | } |