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/bpf.c | |
parent | ebb78bb9e87cf0b71a492cb176f84b7b7608d56a (diff) |
length argument for some free() calls; ok doug
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index e8ccf7b833e..c951cd2d5ef 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.110 2014/10/07 11:16:23 dlg Exp $ */ +/* $OpenBSD: bpf.c,v 1.111 2014/11/23 07:39:02 deraadt Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -931,7 +931,7 @@ bpf_setf(struct bpf_d *d, struct bpf_program *fp, int wf) return (0); } - free(fcode, M_DEVBUF, 0); + free(fcode, M_DEVBUF, size); return (EINVAL); } @@ -1567,7 +1567,7 @@ void bpfilter_destroy(struct bpf_d *bd) { LIST_REMOVE(bd, bd_list); - free(bd, M_DEVBUF, 0); + free(bd, M_DEVBUF, sizeof(*bd)); } /* |