chiark / gitweb /
authbind: Better logging of authbind failures
[secnet.git] / random.c
index 39a9cb07c78f57183358059b21069743dd6b35e1..0c0f947d03c78cdb84f8a316e18684310aadf1d5 100644 (file)
--- a/random.c
+++ b/random.c
@@ -51,7 +51,7 @@ static list_t *random_apply(closure_t *self, struct cloc loc,
     item_t *arg1, *arg2;
     string_t filename=NULL;
 
-    st=safe_malloc(sizeof(*st),"random_apply");
+    NEW(st);
 
     st->cl.description="randomsource";
     st->cl.type=CL_RANDOMSRC;