aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_addresses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r--src/ats/gnunet-service-ats_addresses.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c
index ddcff962b..2cdc12766 100644
--- a/src/ats/gnunet-service-ats_addresses.c
+++ b/src/ats/gnunet-service-ats_addresses.c
@@ -1240,7 +1240,7 @@ GAS_addresses_request_address (struct GAS_Addresses_Handle *handle,
1240 } 1240 }
1241 if (NULL == cur) 1241 if (NULL == cur)
1242 { 1242 {
1243 cur = GNUNET_malloc (sizeof (struct GAS_Addresses_Suggestion_Requests)); 1243 cur = GNUNET_new (struct GAS_Addresses_Suggestion_Requests);
1244 cur->id = (*peer); 1244 cur->id = (*peer);
1245 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, 1245 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG,
1246 "Adding new address suggestion request for `%s'\n", 1246 "Adding new address suggestion request for `%s'\n",
@@ -1836,7 +1836,7 @@ GAS_addresses_preference_change (struct GAS_Addresses_Handle *handle,
1836 1836
1837 if (NULL == find_preference_client (handle, client)) 1837 if (NULL == find_preference_client (handle, client))
1838 { 1838 {
1839 pc = GNUNET_malloc (sizeof (struct GAS_Addresses_Preference_Clients)); 1839 pc = GNUNET_new (struct GAS_Addresses_Preference_Clients);
1840 pc->client = client; 1840 pc->client = client;
1841 GNUNET_CONTAINER_DLL_insert (handle->preference_clients_head, 1841 GNUNET_CONTAINER_DLL_insert (handle->preference_clients_head,
1842 handle->preference_clients_tail, pc); 1842 handle->preference_clients_tail, pc);
@@ -2091,7 +2091,7 @@ GAS_addresses_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
2091 char *plugin_short; 2091 char *plugin_short;
2092 int c; 2092 int c;
2093 2093
2094 ah = GNUNET_malloc (sizeof (struct GAS_Addresses_Handle)); 2094 ah = GNUNET_new (struct GAS_Addresses_Handle);
2095 ah->running = GNUNET_NO; 2095 ah->running = GNUNET_NO;
2096 2096
2097 ah->stat = (struct GNUNET_STATISTICS_Handle *) stats; 2097 ah->stat = (struct GNUNET_STATISTICS_Handle *) stats;