From e0ca7357cd0bfedc5c29cb731b56279fef8da059 Mon Sep 17 00:00:00 2001 From: LRN Date: Thu, 19 Dec 2013 06:00:23 +0000 Subject: malloc -> new --- src/transport/gnunet-service-transport_manipulation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport/gnunet-service-transport_manipulation.c') diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c index 1b708cb70..da3fc2de9 100644 --- a/src/transport/gnunet-service-transport_manipulation.c +++ b/src/transport/gnunet-service-transport_manipulation.c @@ -210,7 +210,7 @@ set_metric (struct TM_Peer *dest, int direction, uint32_t type, uint32_t value) } if (NULL == cur) { - cur = GNUNET_malloc (sizeof (struct PropManipulationEntry)); + cur = GNUNET_new (struct PropManipulationEntry); GNUNET_CONTAINER_DLL_insert (dest->head, dest->tail, cur); cur->type = type; cur->metrics[TM_SEND] = UINT32_MAX; @@ -327,7 +327,7 @@ GST_manipulation_set_metric (void *cls, struct GNUNET_SERVER_Client *client, if (NULL == (tmp = GNUNET_CONTAINER_multipeermap_get (man_handle.peers, &tm->peer))) { - tmp = GNUNET_malloc (sizeof (struct TM_Peer)); + tmp = GNUNET_new (struct TM_Peer); tmp->peer = (tm->peer); for (c = 0; c < TM_BOTH; c++) { -- cgit v1.2.3