- fix cli arg parse
[oweals/gnunet.git] / src / testing / test_testing_peerstartup2.c
index a4bdd4d65d5fc25f1fe0e629cffc96060ab72d48..2bdae72ebeb2290f579d0a358b15723ae87985b8 100644 (file)
@@ -164,7 +164,7 @@ run (void *cls, char *const *args, const char *cfgfile,
   char *emsg;
   struct GNUNET_PeerIdentity id;
 
-  test_ctx = GNUNET_malloc (sizeof (struct TestingContext));
+  test_ctx = GNUNET_new (struct TestingContext);
   test_ctx->system =
       GNUNET_TESTING_system_create ("test-gnunet-testing",
                                     "127.0.0.1", NULL, NULL);