aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_performance.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/ats/ats_api_performance.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/ats/ats_api_performance.c')
-rw-r--r--src/ats/ats_api_performance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c
index 390531d9f..90e061c1d 100644
--- a/src/ats/ats_api_performance.c
+++ b/src/ats/ats_api_performance.c
@@ -628,7 +628,7 @@ GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
628{ 628{
629 struct GNUNET_ATS_PerformanceHandle *ph; 629 struct GNUNET_ATS_PerformanceHandle *ph;
630 630
631 ph = GNUNET_malloc (sizeof (struct GNUNET_ATS_PerformanceHandle)); 631 ph = GNUNET_new (struct GNUNET_ATS_PerformanceHandle);
632 ph->cfg = cfg; 632 ph->cfg = cfg;
633 ph->addr_info_cb = addr_info_cb; 633 ph->addr_info_cb = addr_info_cb;
634 ph->addr_info_cb_cls = addr_info_cb_cls; 634 ph->addr_info_cb_cls = addr_info_cb_cls;
@@ -703,7 +703,7 @@ GNUNET_ATS_reserve_bandwidth (struct GNUNET_ATS_PerformanceHandle *ph,
703 struct PendingMessage *p; 703 struct PendingMessage *p;
704 struct ReservationRequestMessage *m; 704 struct ReservationRequestMessage *m;
705 705
706 rc = GNUNET_malloc (sizeof (struct GNUNET_ATS_ReservationContext)); 706 rc = GNUNET_new (struct GNUNET_ATS_ReservationContext);
707 rc->size = amount; 707 rc->size = amount;
708 rc->peer = *peer; 708 rc->peer = *peer;
709 rc->rcb = rcb; 709 rc->rcb = rcb;
@@ -763,7 +763,7 @@ GNUNET_ATS_performance_list_addresses (
763 if (NULL == infocb) 763 if (NULL == infocb)
764 return NULL ; 764 return NULL ;
765 765
766 alh = GNUNET_malloc (sizeof (struct GNUNET_ATS_AddressListHandle)); 766 alh = GNUNET_new (struct GNUNET_ATS_AddressListHandle);
767 alh->id = handle->id; 767 alh->id = handle->id;
768 handle->id++; 768 handle->id++;
769 alh->cb = infocb; 769 alh->cb = infocb;