diff options
author | julian <julian@FreeBSD.org> | 2001-01-11 15:44:41 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-01-11 15:44:41 +0000 |
commit | c24ab624c0b03d3d3a8012d0d57692f8dec8237d (patch) | |
tree | d57cc0dd809f6ae8224a92cd1b56451c9490bd39 | |
parent | ec4dee7604535b15c25254fe923247cc4b72591a (diff) | |
download | FreeBSD-src-c24ab624c0b03d3d3a8012d0d57692f8dec8237d.zip FreeBSD-src-c24ab624c0b03d3d3a8012d0d57692f8dec8237d.tar.gz |
Another brian fix, luckily not in live code.
-rw-r--r-- | sys/netgraph/ng_bpf.c | 4 | ||||
-rw-r--r-- | sys/netgraph/ng_sample.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/netgraph/ng_bpf.c b/sys/netgraph/ng_bpf.c index 5a2b84d..fb52093 100644 --- a/sys/netgraph/ng_bpf.c +++ b/sys/netgraph/ng_bpf.c @@ -361,10 +361,8 @@ ng_bpf_rcvmsg(node_p node, item_p item, hook_p lasthook) error = EINVAL; break; } - NG_RESPOND_MSG(error, node, item, resp); done: - if (item) - NG_FREE_ITEM(item); + NG_RESPOND_MSG(error, node, item, resp); NG_FREE_MSG(msg); return (error); } diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index 5c98b83..8616dd6 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -377,9 +377,10 @@ ng_xxx_rcvdata(hook_p hook, item_p item ) } } else { /* It's the debug hook, throw it away.. */ - if (hook == xxxp->downstream_hook.hook) + if (hook == xxxp->downstream_hook.hook) { NG_FREE_ITEM(item); NG_FREE_M(m); + } } return 0; } |