dpp: free nl80211 object on exit

This commit is contained in:
James Prestwood 2022-01-19 15:04:51 -08:00 committed by Denis Kenzior
parent c3b18c44e0
commit f70c0cb2f9
1 changed files with 3 additions and 0 deletions

View File

@ -1931,6 +1931,9 @@ static void dpp_exit(void)
l_genl_family_unregister(nl80211, mlme_watch);
mlme_watch = 0;
l_genl_family_free(nl80211);
nl80211 = NULL;
l_queue_destroy(dpp_list, (l_queue_destroy_func_t) dpp_free);
}