summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_manipulation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_manipulation.c')
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c4
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++)
{