Fix a bug where we were accessing already free'd memory during node shutdown.
Detected via: 0xdeadc0de
This commit is contained in:
parent
e16f9ed345
commit
8a660c773a
@ -492,7 +492,7 @@ ngfrm_rmnode(node_p node)
|
|||||||
ng_unname(node);
|
ng_unname(node);
|
||||||
node->private = NULL;
|
node->private = NULL;
|
||||||
FREE(sc, M_NETGRAPH);
|
FREE(sc, M_NETGRAPH);
|
||||||
ng_unref(sc->node);
|
ng_unref(node);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user