~mdw
/
secnet
/ 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]
/
dh.c
diff --git
a/dh.c
b/dh.c
index
c37b538
..
54d3102
100644
(file)
--- a/
dh.c
+++ b/
dh.c
@@
-63,7
+63,7
@@
static list_t *dh_apply(closure_t *self, struct cloc loc, dict_t *context,
string_t p,g;
item_t *i;
string_t p,g;
item_t *i;
-
st=safe_malloc(sizeof(*st),"dh_apply"
);
+
NEW(st
);
st->cl.description="dh";
st->cl.type=CL_DH;
st->cl.apply=NULL;
st->cl.description="dh";
st->cl.type=CL_DH;
st->cl.apply=NULL;