chiark / gitweb /
NEW etc.: Use NEW in all obvious places
[secnet.git] / resolver.c
index a39e9fcde510dea5e96bf81dcf05aad079ea982d..e9f42f1b88aa83f2a68c609d6636b9a82e5451ca 100644 (file)
@@ -173,7 +173,7 @@ static list_t *adnsresolver_apply(closure_t *self, struct cloc loc,
     item_t *i;
     string_t conf;
 
-    st=safe_malloc(sizeof(*st),"adnsresolver_apply");
+    NEW(st);
     st->cl.description="adns";
     st->cl.type=CL_RESOLVER;
     st->cl.apply=NULL;