summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-07-12 18:50:00 +0000
committertedu <tedu@openbsd.org>2014-07-12 18:50:00 +0000
commit0e5ae731040c42e0ae2549d149ca35cd27a051b5 (patch)
treec3f5a53aee4a0419ec2744a0610be5326c7e3992 /sys/compat/linux/linux_socket.c
parentadd a size argument to free. will be used soon, but for now default to 0. (diff)
downloadwireguard-openbsd-0e5ae731040c42e0ae2549d149ca35cd27a051b5.tar.xz
wireguard-openbsd-0e5ae731040c42e0ae2549d149ca35cd27a051b5.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/compat/linux/linux_socket.c')
-rw-r--r--sys/compat/linux/linux_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
index 7f730e5c55e..cfc0906cc37 100644
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_socket.c,v 1.52 2014/04/07 10:04:17 mpi Exp $ */
+/* $OpenBSD: linux_socket.c,v 1.53 2014/07/12 18:50:00 tedu Exp $ */
/* $NetBSD: linux_socket.c,v 1.14 1996/04/05 00:01:50 christos Exp $ */
/*
@@ -1381,7 +1381,7 @@ linux_sa_get(p, sgp, sap, osa, osalen)
out:
*osalen = alloclen;
- free(kosa, M_TEMP);
+ free(kosa, M_TEMP, 0);
return (error);
}