X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/32654a316b5925914f5e5f481971d47f9728edab..d9d101eaf54ff0c58852c8ccf37c4fcd8f8d8a35:/tun.c diff --git a/tun.c b/tun.c index b3c69a2..d5e0e9e 100644 --- a/tun.c +++ b/tun.c @@ -456,7 +456,7 @@ static list_t *tun_create(closure_t *self, struct cloc loc, dict_t *context, dict_t *dict; string_t flavour,type; - st=safe_malloc(sizeof(*st),"tun_apply"); + NEW(st); /* First parameter must be a dict */ item=list_elem(args,0);