diff options
Diffstat (limited to 'src/ats/plugin_ats_mlp.c')
-rw-r--r-- | src/ats/plugin_ats_mlp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/plugin_ats_mlp.c b/src/ats/plugin_ats_mlp.c index 0e6f60893..7dd31edf5 100644 --- a/src/ats/plugin_ats_mlp.c +++ b/src/ats/plugin_ats_mlp.c | |||
@@ -1672,7 +1672,7 @@ GAS_mlp_get_preferred_address (void *solver, | |||
1672 | LOG (GNUNET_ERROR_TYPE_INFO, "Adding peer `%s' to list of requested_peers with requests\n", | 1672 | LOG (GNUNET_ERROR_TYPE_INFO, "Adding peer `%s' to list of requested_peers with requests\n", |
1673 | GNUNET_i2s (peer)); | 1673 | GNUNET_i2s (peer)); |
1674 | 1674 | ||
1675 | p = GNUNET_malloc (sizeof (struct ATS_Peer)); | 1675 | p = GNUNET_new (struct ATS_Peer); |
1676 | p->id = (*peer); | 1676 | p->id = (*peer); |
1677 | p->f = get_peer_pref_value (mlp, peer); | 1677 | p->f = get_peer_pref_value (mlp, peer); |
1678 | GNUNET_CONTAINER_multipeermap_put (mlp->requested_peers, | 1678 | GNUNET_CONTAINER_multipeermap_put (mlp->requested_peers, |
@@ -1887,7 +1887,7 @@ void * | |||
1887 | libgnunet_plugin_ats_mlp_init (void *cls) | 1887 | libgnunet_plugin_ats_mlp_init (void *cls) |
1888 | { | 1888 | { |
1889 | struct GNUNET_ATS_PluginEnvironment *env = cls; | 1889 | struct GNUNET_ATS_PluginEnvironment *env = cls; |
1890 | struct GAS_MLP_Handle * mlp = GNUNET_malloc (sizeof (struct GAS_MLP_Handle)); | 1890 | struct GAS_MLP_Handle * mlp = GNUNET_new (struct GAS_MLP_Handle); |
1891 | 1891 | ||
1892 | double D; | 1892 | double D; |
1893 | double R; | 1893 | double R; |