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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64365

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