X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=netlink.c;h=e180b1dfad95fb53f4f46e61516ae83440873538;hp=601686425124cb7d7bb46cb03500f9df75e7c909;hb=f2d5f883b327692465b0eb77da48790d03253814;hpb=ac195dac910165a95e1f818f514952a724aa3af6 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)