summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2006-10-13 08:09:44 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2006-10-13 08:09:44 +0000
commit99ee4bea4963536a3b19bf492087b63ff32c80f1 (patch)
tree4ff6181b8b07f3f64c48a2c7ee799d83d4517739
parent6c7a4e0ddba0fd1af86608cbf5a349c087c63d8b (diff)
Notes
-rw-r--r--sys/netgraph/ng_base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index cc104dbd77124..64513341569ab 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -1129,6 +1129,9 @@ ng_bypass(hook_p hook1, hook_p hook2)
hook1->hk_peer = &ng_deadhook;
hook2->hk_peer = &ng_deadhook;
+ NG_HOOK_UNREF(hook1);
+ NG_HOOK_UNREF(hook2);
+
/* XXX If we ever cache methods on hooks update them as well */
ng_destroy_hook(hook1);
ng_destroy_hook(hook2);