aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index 582435651..a2338f1c9 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -710,7 +710,7 @@ GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
710{ 710{
711 struct CustomLogger *entry; 711 struct CustomLogger *entry;
712 712
713 entry = GNUNET_malloc (sizeof (struct CustomLogger)); 713 entry = GNUNET_new (struct CustomLogger);
714 entry->logger = logger; 714 entry->logger = logger;
715 entry->logger_cls = logger_cls; 715 entry->logger_cls = logger_cls;
716 entry->next = loggers; 716 entry->next = loggers;