separate update and full results
[oweals/gnunet.git] / src / ats / test_ats_api_bandwidth_consumption.c
index 74ee22cfbda554c44fb6506b357727cf9af66e41..493323657e07142eb7760d2d3ec32afc600307b9 100644 (file)
@@ -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)