From e0ca7357cd0bfedc5c29cb731b56279fef8da059 Mon Sep 17 00:00:00 2001 From: LRN Date: Thu, 19 Dec 2013 06:00:23 +0000 Subject: malloc -> new --- src/ats-tests/perf_ats_logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ats-tests/perf_ats_logging.c') diff --git a/src/ats-tests/perf_ats_logging.c b/src/ats-tests/perf_ats_logging.c index 6dc5a96b4..823cfaf38 100644 --- a/src/ats-tests/perf_ats_logging.c +++ b/src/ats-tests/perf_ats_logging.c @@ -513,7 +513,7 @@ collect_log_now (void) for (c_m = 0; c_m < num_peers; c_m++) { bp = &lp[c_m]; - mlt = GNUNET_malloc (sizeof (struct PeerLoggingTimestep)); + mlt = GNUNET_new (struct PeerLoggingTimestep); GNUNET_CONTAINER_DLL_insert_tail(bp->head, bp->tail, mlt); prev_log_mlt = mlt->prev; -- cgit v1.2.3