1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Properly unref ng_hub nodes on shutdown, so that we don't leak them.

MFC after:	3 days
This commit is contained in:
Marko Zec 2011-04-07 11:40:10 +00:00
parent 530d535d79
commit fae147aab3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220416

View File

@ -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);
}