krpc/clnt_nl: unregister the netlink group, when client is destroyed

This commit is contained in:
Gleb Smirnoff committed 2025-02-05 10:09:06 -08:00
1 parent 57171f6d14
commit 936f1765b2
1 file changed
+1
+1
View File
@@ -461,6 +461,7 @@ clnt_nl_destroy(CLIENT *cl)
MPASS(TAILQ_EMPTY(&nl->nl_pending));
genl_unregister_group(rpcnl_family_id, nl->nl_hdr.group);
rw_wlock(&rpcnl_global_lock);
RB_REMOVE(nl_data_t, &rpcnl_clients, nl);
rw_wlock(&rpcnl_global_lock);