diff options
Diffstat (limited to 'sys/netgraph/ng_ether.c')
| -rw-r--r-- | sys/netgraph/ng_ether.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netgraph/ng_ether.c b/sys/netgraph/ng_ether.c index 86a4dcb1a41c..7c96548fdb37 100644 --- a/sys/netgraph/ng_ether.c +++ b/sys/netgraph/ng_ether.c @@ -288,6 +288,7 @@ ng_ether_detach(struct ifnet *ifp) return; ng_rmnode(node); /* break all links to other nodes */ node->flags |= NG_INVALID; + ng_unname(node); /* free name (and its reference) */ IFP2NG(ifp) = NULL; /* detach node from interface */ priv = node->private; /* free node private info */ bzero(priv, sizeof(*priv)); |
