summaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 1ef6ce095..7750ad1cf 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -967,7 +967,7 @@ GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
{
struct GNUNET_ATS_SchedulingHandle *sh;
- sh = GNUNET_malloc (sizeof (struct GNUNET_ATS_SchedulingHandle));
+ sh = GNUNET_new (struct GNUNET_ATS_SchedulingHandle);
sh->cfg = cfg;
sh->suggest_cb = suggest_cb;
sh->suggest_cb_cls = suggest_cb_cls;
@@ -1083,7 +1083,7 @@ GNUNET_ATS_suggest_address (struct GNUNET_ATS_SchedulingHandle *sh,
m->peer = *peer;
GNUNET_CONTAINER_DLL_insert_tail (sh->pending_head, sh->pending_tail, p);
do_transmit (sh);
- s = GNUNET_malloc (sizeof (struct GNUNET_ATS_SuggestHandle));
+ s = GNUNET_new (struct GNUNET_ATS_SuggestHandle);
s->id = (*peer);
GNUNET_CONTAINER_DLL_insert_tail (sh->sug_head, sh->sug_tail, s);
return s;