- Act malicious API complete
[oweals/gnunet.git] / src / dht / dht_test_lib.c
index 9864da94999e74a4f5488cdf2352dc068f6ddb4f..92b10e815dd5b942a7b087017fb4eb16e07ad4bc 100644 (file)
@@ -201,7 +201,7 @@ GNUNET_DHT_TEST_run (const char *testname,
 {
   struct GNUNET_DHT_TEST_Context *ctx;
 
-  ctx = GNUNET_malloc (sizeof (struct GNUNET_DHT_TEST_Context));
+  ctx = GNUNET_new (struct GNUNET_DHT_TEST_Context);
   ctx->num_peers = num_peers;
   ctx->ops = GNUNET_malloc (num_peers * sizeof (struct GNUNET_TESTBED_Operation *));
   ctx->dhts = GNUNET_malloc (num_peers * sizeof (struct GNUNET_DHT_Handle *));