summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-23 07:39:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-11-23 07:39:03 +0000
commitb61c55cb5375d200c9265da3d637a192c9d0eb09 (patch)
treee928c207d5e190d37f968823442a430eee8354d2 /sys/net/if_gre.c
parentebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff)
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index 980c7a31462..bd88af6d64c 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.71 2014/10/14 09:52:25 mpi Exp $ */
+/* $OpenBSD: if_gre.c,v 1.72 2014/11/23 07:39:02 deraadt Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -177,7 +177,7 @@ gre_clone_destroy(struct ifnet *ifp)
if_detach(ifp);
- free(sc, M_DEVBUF, 0);
+ free(sc, M_DEVBUF, sizeof(*sc));
return (0);
}