aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh_test_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/mesh_test_lib.c')
-rw-r--r--src/mesh/mesh_test_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/mesh_test_lib.c b/src/mesh/mesh_test_lib.c
index 7ad888da8..0229a5bb1 100644
--- a/src/mesh/mesh_test_lib.c
+++ b/src/mesh/mesh_test_lib.c
@@ -237,7 +237,7 @@ mesh_test_run (void *cls,
237 for (i = 0; i < num_peers; i++) 237 for (i = 0; i < num_peers; i++)
238 { 238 {
239 struct GNUNET_MESH_TEST_AdapterContext *newctx; 239 struct GNUNET_MESH_TEST_AdapterContext *newctx;
240 newctx = GNUNET_malloc (sizeof (struct GNUNET_MESH_TEST_AdapterContext)); 240 newctx = GNUNET_new (struct GNUNET_MESH_TEST_AdapterContext);
241 newctx->peer = i; 241 newctx->peer = i;
242 newctx->ctx = ctx; 242 newctx->ctx = ctx;
243 ctx->ops[i] = GNUNET_TESTBED_service_connect (ctx, 243 ctx->ops[i] = GNUNET_TESTBED_service_connect (ctx,
@@ -265,7 +265,7 @@ GNUNET_MESH_TEST_run (const char *testname,
265{ 265{
266 struct GNUNET_MESH_TEST_Context *ctx; 266 struct GNUNET_MESH_TEST_Context *ctx;
267 267
268 ctx = GNUNET_malloc (sizeof (struct GNUNET_MESH_TEST_Context)); 268 ctx = GNUNET_new (struct GNUNET_MESH_TEST_Context);
269 ctx->num_peers = num_peers; 269 ctx->num_peers = num_peers;
270 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *)); 270 ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *));
271 ctx->meshes = GNUNET_malloc (num_peers * sizeof (struct GNUNET_MESH_Handle *)); 271 ctx->meshes = GNUNET_malloc (num_peers * sizeof (struct GNUNET_MESH_Handle *));