aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_proportional.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/plugin_ats_proportional.c')
-rw-r--r--src/ats/plugin_ats_proportional.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 82a41d39f..62f571e5b 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -409,7 +409,7 @@ libgnunet_plugin_ats_proportional_init (void *cls)
409 GNUNET_assert(NULL != env->get_preferences); 409 GNUNET_assert(NULL != env->get_preferences);
410 GNUNET_assert(NULL != env->get_property); 410 GNUNET_assert(NULL != env->get_property);
411 411
412 s = GNUNET_malloc (sizeof (struct GAS_PROPORTIONAL_Handle)); 412 s = GNUNET_new (struct GAS_PROPORTIONAL_Handle);
413 s->env = env; 413 s->env = env;
414 env->sf.s_add = &GAS_proportional_address_add; 414 env->sf.s_add = &GAS_proportional_address_add;
415 env->sf.s_address_update_property = &GAS_proportional_address_property_changed; 415 env->sf.s_address_update_property = &GAS_proportional_address_property_changed;
@@ -1572,12 +1572,12 @@ GAS_proportional_address_add (void *solver, struct ATS_Address *address,
1572 return; 1572 return;
1573 } 1573 }
1574 1574
1575 aw = GNUNET_malloc (sizeof (struct AddressWrapper)); 1575 aw = GNUNET_new (struct AddressWrapper);
1576 aw->addr = address; 1576 aw->addr = address;
1577 GNUNET_CONTAINER_DLL_insert(net->head, net->tail, aw); 1577 GNUNET_CONTAINER_DLL_insert(net->head, net->tail, aw);
1578 addresse_increment (s, net, GNUNET_YES, GNUNET_NO); 1578 addresse_increment (s, net, GNUNET_YES, GNUNET_NO);
1579 1579
1580 asi = GNUNET_malloc (sizeof (struct AddressSolverInformation)); 1580 asi = GNUNET_new (struct AddressSolverInformation);
1581 asi->network = net; 1581 asi->network = net;
1582 asi->calculated_quota_in_NBO = 0; 1582 asi->calculated_quota_in_NBO = 0;
1583 asi->calculated_quota_out_NBO = 0; 1583 asi->calculated_quota_out_NBO = 0;