release a reference when stopping a monitor
This commit is contained in:
parent
85fe4e7c6b
commit
05f7605789
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285696
@ -326,6 +326,7 @@ netmap_monitor_stop(struct netmap_adapter *na)
|
|||||||
struct netmap_monitor_adapter *mna =
|
struct netmap_monitor_adapter *mna =
|
||||||
(struct netmap_monitor_adapter *)mkring->na;
|
(struct netmap_monitor_adapter *)mkring->na;
|
||||||
/* forget about this adapter */
|
/* forget about this adapter */
|
||||||
|
netmap_adapter_put(mna->priv.np_na);
|
||||||
mna->priv.np_na = NULL;
|
mna->priv.np_na = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user