summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.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_pfsync.c
parentebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff)
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index abc35b85298..82500e09c98 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.211 2014/11/06 05:29:35 lteo Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.212 2014/11/23 07:39:02 deraadt Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -379,7 +379,7 @@ pfsync_clone_destroy(struct ifnet *ifp)
pool_destroy(&sc->sc_pool);
free(sc->sc_imo.imo_membership, M_IPMOPTS, 0);
- free(sc, M_DEVBUF, 0);
+ free(sc, M_DEVBUF, sizeof(*sc));
pfsyncif = NULL;
splx(s);