From 675fd226541178e8261519d719e9f336d7e7f2a6 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Sep 2013 11:23:37 +0000 Subject: -cleanup --- src/statistics/gnunet-service-statistics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 77939d7b4..737ecd7a3 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c @@ -409,7 +409,7 @@ make_client_entry (struct GNUNET_SERVER_Client *client) GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); return NULL; } - ce = GNUNET_malloc (sizeof (struct ClientEntry)); + ce = GNUNET_new (struct ClientEntry); ce->client = client; GNUNET_CONTAINER_DLL_insert (client_head, client_tail, ce); GNUNET_SERVER_notification_context_add (nc, client); @@ -702,7 +702,7 @@ handle_watch (void *cls, struct GNUNET_SERVER_Client *client, "New statistic on `%s:%s' with value %llu created.\n", service, name, pos->value); } - we = GNUNET_malloc (sizeof (struct WatchEntry)); + we = GNUNET_new (struct WatchEntry); we->client = client; we->last_value_set = GNUNET_NO; we->wid = ce->max_wid++; -- cgit v1.2.3