From f70c0cb2f9310586750e1d3077a3d1ae8d1978b2 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 19 Jan 2022 15:04:51 -0800 Subject: [PATCH] dpp: free nl80211 object on exit --- src/dpp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dpp.c b/src/dpp.c index 78e8ffc5..6889bef9 100644 --- a/src/dpp.c +++ b/src/dpp.c @@ -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); }