diff options
| author | Julian Elischer <julian@FreeBSD.org> | 2001-01-11 23:05:34 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 2001-01-11 23:05:34 +0000 |
| commit | 52fa355626ef06ff96d69485566c3be5987fa31b (patch) | |
| tree | 81b01fd568126184f286318e340fe9ccb7fc3a45 /sys/netgraph | |
| parent | b89157597f1f07e81aeefa0f282b4e3517f65e02 (diff) | |
Notes
Diffstat (limited to 'sys/netgraph')
| -rw-r--r-- | sys/netgraph/ng_base.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index cdf45e713d63d..8c3f612f09f94 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -1073,9 +1073,10 @@ ng_destroy_hook(hook_p hook) peer->hk_peer = &ng_deadhook; /* They no longer know us */ hook->hk_peer = &ng_deadhook; /* Nor us, them */ ng_rmhook_self(peer); /* Give it a surprise */ + NG_HOOK_UNREF(peer); /* account for peer link */ + NG_HOOK_UNREF(hook); /* account for peer link */ } ng_disconnect_hook(hook); - NG_HOOK_UNREF(hook); /* account for peer link */ } /* @@ -3055,6 +3056,7 @@ ng_dumphooks(void) } } +#if 0 static int sysctl_debug_ng_dump_items(SYSCTL_HANDLER_ARGS) { @@ -3076,6 +3078,7 @@ sysctl_debug_ng_dump_items(SYSCTL_HANDLER_ARGS) SYSCTL_PROC(_debug, OID_AUTO, ng_dump_items, CTLTYPE_INT | CTLFLAG_RD, 0, 0, sysctl_debug_ng_dump_items, "I", "Number of allocated items"); +#endif #endif /* NETGRAPH_DEBUG */ |
