summaryrefslogtreecommitdiff
path: root/src/ats/test_ats_api_bandwidth_consumption.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/test_ats_api_bandwidth_consumption.c')
-rw-r--r--src/ats/test_ats_api_bandwidth_consumption.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/test_ats_api_bandwidth_consumption.c b/src/ats/test_ats_api_bandwidth_consumption.c
index 74ee22cfb..493323657 100644
--- a/src/ats/test_ats_api_bandwidth_consumption.c
+++ b/src/ats/test_ats_api_bandwidth_consumption.c
@@ -189,8 +189,8 @@ run (void *cls,
end ();
return;
}
- p = GNUNET_malloc (sizeof (struct PeerContext));
- addr = GNUNET_malloc (sizeof (struct Address));
+ p = GNUNET_new (struct PeerContext);
+ addr = GNUNET_new (struct Address);
atp = GNUNET_ATS_performance_init (cfg, &performance_cb, NULL);
if (atp == NULL)