aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/dht_test_lib.c')
-rw-r--r--src/dht/dht_test_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht/dht_test_lib.c b/src/dht/dht_test_lib.c
index 9864da949..92b10e815 100644
--- a/src/dht/dht_test_lib.c
+++ b/src/dht/dht_test_lib.c
@@ -201,7 +201,7 @@ GNUNET_DHT_TEST_run (const char *testname,
201{ 201{
202 struct GNUNET_DHT_TEST_Context *ctx; 202 struct GNUNET_DHT_TEST_Context *ctx;
203 203
204 ctx = GNUNET_malloc (sizeof (struct GNUNET_DHT_TEST_Context)); 204 ctx = GNUNET_new (struct GNUNET_DHT_TEST_Context);
205 ctx->num_peers = num_peers; 205 ctx->num_peers = num_peers;
206 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *)); 206 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *));
207 ctx->dhts = GNUNET_malloc (num_peers * sizeof (struct GNUNET_DHT_Handle *)); 207 ctx->dhts = GNUNET_malloc (num_peers * sizeof (struct GNUNET_DHT_Handle *));