chiark / gitweb /
NEW etc.: Use NEW at non-formulaic call sites
[secnet.git] / log.c
diff --git a/log.c b/log.c
index a17032bb3e255ea8db651b7cb5afd8eaa0fc62ec..a2e24aed61e1fd37669648f46519cc6f3ce896b7 100644 (file)
--- a/log.c
+++ b/log.c
@@ -274,7 +274,7 @@ struct log_if *init_log(list_t *ll)
     if (!l) {
        fatal("init_log: no log");
     }
-    r=safe_malloc(sizeof(*r), "init_log");
+    NEW(r);
     r->st=l;
     r->vlogfn=log_vmulti;
     r->buff[0]=0;