X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=random.c;fp=random.c;h=0c0f947d03c78cdb84f8a316e18684310aadf1d5;hb=b7886fd46ab05c97b8a072e497903622bd1d5290;hp=39a9cb07c78f57183358059b21069743dd6b35e1;hpb=8f828e0ffdab1adb6f28fd705c5830ef8f7ac2b4;p=secnet.git diff --git a/random.c b/random.c index 39a9cb0..0c0f947 100644 --- 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;