diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-11-23 07:39:03 +0000 |
commit | b61c55cb5375d200c9265da3d637a192c9d0eb09 (patch) | |
tree | e928c207d5e190d37f968823442a430eee8354d2 /sys/net/if_gif.c | |
parent | ebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff) |
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/if_gif.c')
-rw-r--r-- | sys/net/if_gif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index ad0f6d1b1d3..c0490b7b270 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gif.c,v 1.69 2014/07/22 11:06:09 mpi Exp $ */ +/* $OpenBSD: if_gif.c,v 1.70 2014/11/23 07:39:02 deraadt Exp $ */ /* $KAME: if_gif.c,v 1.43 2001/02/20 08:51:07 itojun Exp $ */ /* @@ -139,7 +139,7 @@ gif_clone_destroy(struct ifnet *ifp) if (sc->gif_pdst) free((caddr_t)sc->gif_pdst, M_IFADDR, 0); sc->gif_pdst = NULL; - free(sc, M_DEVBUF, 0); + free(sc, M_DEVBUF, sizeof(*sc)); return (0); } |