X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/8f828e0ffdab1adb6f28fd705c5830ef8f7ac2b4..b7886fd46ab05c97b8a072e497903622bd1d5290:/random.c 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;