summaryrefslogtreecommitdiff
path: root/src/ats-tests/perf_ats_logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats-tests/perf_ats_logging.c')
-rw-r--r--src/ats-tests/perf_ats_logging.c2
1 files changed, 1 insertions, 1 deletions
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;