X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/4ea3eeb803a561e97407755eee34426bc639d49f..b7886fd46ab05c97b8a072e497903622bd1d5290:/netlink.c diff --git a/netlink.c b/netlink.c index 6016864..e180b1d 100644 --- a/netlink.c +++ b/netlink.c @@ -1138,7 +1138,7 @@ static closure_t *netlink_inst_create(struct netlink *st, return NULL; } - c=safe_malloc(sizeof(*c),"netlink_inst_create"); + NEW(c); c->cl.description=name; c->cl.type=CL_NETLINK; c->cl.apply=NULL; @@ -1307,7 +1307,7 @@ static list_t *null_apply(closure_t *self, struct cloc loc, dict_t *context, item_t *item; dict_t *dict; - st=safe_malloc(sizeof(*st),"null_apply"); + NEW(st); item=list_elem(args,0); if (!item || item->type!=t_dict)