fix a cut-n-paste error.

in the case where the bridge node was closed down but a timeout
still applied to it, the final reference to the node was freeing the private
data structure using the wrong malloc type.

Approved by:	re@
This commit is contained in:
Julian Elischer 2003-05-15 18:51:28 +00:00
parent dd3b229e2c
commit 95f04def4b

View File

@ -987,7 +987,7 @@ ng_bridge_timeout(void *arg)
/* If node was shut down, this is the final lingering timeout */
s = splnet();
if (NG_NODE_NOT_VALID(node)) {
FREE(priv, M_NETGRAPH);
FREE(priv, M_NETGRAPH_BRIDGE);
NG_NODE_SET_PRIVATE(node, NULL);
NG_NODE_UNREF(node);
splx(s);