summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-12 18:44:22 +0000
committertedu <tedu@openbsd.org>2014-07-12 18:44:22 +0000
commitdd168dc2dbd0498445c205acd3a92d235cbcb6af (patch)
tree7468232c146a34628a98058ec363c774cbe975e5 /sys/net/if_tun.c
parentadd a size argument to free. will be used soon, but for now default to 0. (diff)
downloadwireguard-openbsd-dd168dc2dbd0498445c205acd3a92d235cbcb6af.tar.xz
wireguard-openbsd-dd168dc2dbd0498445c205acd3a92d235cbcb6af.zip
add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 7d705463df4..9f62d5b8314 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.125 2014/05/05 11:44:33 mpi Exp $ */
+/* $OpenBSD: if_tun.c,v 1.126 2014/07/12 18:44:22 tedu Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -246,7 +246,7 @@ tun_clone_destroy(struct ifnet *ifp)
if_detach(ifp);
- free(tp, M_DEVBUF);
+ free(tp, M_DEVBUF, 0);
return (0);
}
@@ -322,7 +322,7 @@ tun_switch(struct tun_softc *tp, int flags)
}
abort:
if (ifgrpnames)
- free(ifgrpnames, M_TEMP);
+ free(ifgrpnames, M_TEMP, 0);
return (r);
}