Fix a bug where we were accessing already free'd memory during node shutdown.

Detected via:	0xdeadc0de
This commit is contained in:
archie 2000-08-07 22:41:12 +00:00
parent a96b1a388b
commit abc93090fb

View File

@ -492,7 +492,7 @@ ngfrm_rmnode(node_p node)
ng_unname(node);
node->private = NULL;
FREE(sc, M_NETGRAPH);
ng_unref(sc->node);
ng_unref(node);
return (0);
}