X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=tun.c;h=d5e0e9e985e31eb615e0bcf5655d7c37f2116aab;hp=b3c69a2351e0fea272c4fef404c50d585b8159d5;hb=656df7e2c9b688150ebe991d79a64ac096bb5f8e;hpb=32654a316b5925914f5e5f481971d47f9728edab 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);