X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/8f828e0ffdab1adb6f28fd705c5830ef8f7ac2b4..b7886fd46ab05c97b8a072e497903622bd1d5290:/comm-common.c diff --git a/comm-common.c b/comm-common.c index d880055..7528e92 100644 --- a/comm-common.c +++ b/comm-common.c @@ -7,7 +7,7 @@ void comm_request_notify(void *commst, void *nst, comm_notify_fn *fn) struct commcommon *st=commst; struct comm_notify_entry *n; - n=safe_malloc(sizeof(*n),"comm_request_notify"); + NEW(n); n->fn=fn; n->state=nst; LIST_INSERT_HEAD(&st->notify, n, entry);