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

Detected via:	0xdeadc0de
This commit is contained in:
Archie Cobbs 2000-08-07 22:41:12 +00:00
parent e16f9ed345
commit 8a660c773a

View File

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