svn commit: r221985 - stable/8/sys/netgraph
Marko Zec
zec at FreeBSD.org
Mon May 16 12:11:30 UTC 2011
Author: zec
Date: Mon May 16 12:11:29 2011
New Revision: 221985
URL: http://svn.freebsd.org/changeset/base/221985
Log:
MFC r220416:
Properly unref ng_hub nodes on shutdown, so that we don't leak them.
Modified:
stable/8/sys/netgraph/ng_hub.c
Directory Properties:
stable/8/sys/ (props changed)
Modified: stable/8/sys/netgraph/ng_hub.c
==============================================================================
--- stable/8/sys/netgraph/ng_hub.c Mon May 16 12:00:32 2011 (r221984)
+++ stable/8/sys/netgraph/ng_hub.c Mon May 16 12:11:29 2011 (r221985)
@@ -157,6 +157,8 @@ ng_hub_shutdown(node_p node)
const priv_p priv = NG_NODE_PRIVATE(node);
free(priv, M_NETGRAPH_HUB);
+ NG_NODE_SET_PRIVATE(node, NULL);
+ NG_NODE_UNREF(node);
return (0);
}
More information about the svn-src-stable-8
mailing list