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:
parent
dd3b229e2c
commit
95f04def4b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user