diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/transport/gnunet-service-transport_manipulation.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) |
malloc -> new
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r-- | src/transport/gnunet-service-transport_manipulation.c | 4 |
1 files changed, 2 insertions, 2 deletions
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++) { |