--- a/sys/netgraph7/tty/ng_tty.c +++ b/sys/netgraph7/tty/ng_tty.c @@ -212,6 +212,7 @@ if ((error = ng_name_node(sc->node, name))) { sc->flags |= FLG_DIE; NG_NODE_UNREF(sc->node); + kfree(sc, M_NETGRAPH); /* node freed without nd_shutdown */ log(LOG_ERR, "%s: node name exists?\n", name); lwkt_reltoken(&tp->t_token); return (error);