chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEW etc.: Use NEW in all obvious places
[secnet.git]
/
netlink.c
diff --git
a/netlink.c
b/netlink.c
index 601686425124cb7d7bb46cb03500f9df75e7c909..e180b1dfad95fb53f4f46e61516ae83440873538 100644
(file)
--- a/
netlink.c
+++ b/
netlink.c
@@
-1138,7
+1138,7
@@
static closure_t *netlink_inst_create(struct netlink *st,
return NULL;
}
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;
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;
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)
item=list_elem(args,0);
if (!item || item->type!=t_dict)