summaryrefslogtreecommitdiff
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,
{
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 *));